Interface IRWOLockManager.LockChange.DeltaHandler<OBJECT,CONTEXT>
- Type Parameters:
OBJECT- the locked object typeCONTEXT- the lock owner type
- Enclosing class:
IRWOLockManager.LockChange<OBJECT>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface IRWOLockManager.LockChange.DeltaHandler<OBJECT,CONTEXT>
Receives one effective delta from a
IRWOLockManager.changeLocks(CONTEXT, java.util.List<? extends org.eclipse.net4j.util.concurrent.IRWOLockManager.LockChange<OBJECT>>, org.eclipse.net4j.util.concurrent.IRWOLockManager.LockChange.DeltaHandler<OBJECT, CONTEXT>, java.util.function.Consumer<org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<OBJECT, CONTEXT>>) call.- Since:
- 3.31
- Author:
- Eike Stepper
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleLockDelta(IRWOLockManager.LockChange.Operation operation, CONTEXT context, OBJECT object, IRWLockManager.LockType lockType, int oldCount, int newCount) Handles one effective lock-count change in a lock mutation batch.
-
Method Details
-
handleLockDelta
void handleLockDelta(IRWOLockManager.LockChange.Operation operation, CONTEXT context, OBJECT object, IRWLockManager.LockType lockType, int oldCount, int newCount) Handles one effective lock-count change in a lock mutation batch.- Parameters:
operation- whether the change adds or removes lockscontext- the owner whose lock count changedobject- the affected objectlockType- the affected lock typeoldCount- the lock count before the changenewCount- the lock count after the change
-