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, List, IRWOLockManager.LockChange.DeltaHandler, Consumer) 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
-