Package org.eclipse.emf.cdo.spi.server
Interface InternalLockManager.LockChangeReservationSet
- Enclosing interface:
InternalLockManager
public static interface InternalLockManager.LockChangeReservationSet
An aggregate of per-session reservations for one lock change.
- Since:
- 4.27
- Author:
- Eike Stepper
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels all entries in this reservation.voidcomplete(CDOLockChangeInfo info, InternalSession excludedSession) Completes this reservation with the resulting change, canceling the entry for the excluded session when the notification is not delivered to that session.getResult(InternalSession session) Waits for and returns this lock change's result for the given session.
-
Method Details
-
complete
Completes this reservation with the resulting change, canceling the entry for the excluded session when the notification is not delivered to that session.- Parameters:
info- the completed lock changeexcludedSession- the session whose entry must be cancelled, ornull- Since:
- 4.27
-
cancel
void cancel()Cancels all entries in this reservation.- Since:
- 4.27
-
getResult
Waits for and returns this lock change's result for the given session.- Parameters:
session- the recipient session- Returns:
- the exact sequence count and projected change, or
nullif no reservation was made - Since:
- 4.27
-