Package org.eclipse.emf.cdo.spi.server
Interface InternalSession.LockChangeReservation
- Enclosing interface:
InternalSession
public static interface InternalSession.LockChangeReservation
Represents a position reserved in this session's lock-change sequence. The reservation
captures the notification context when it is created, so completing it later preserves
recipient-specific projection and ordering even if the session's views change meanwhile.
- Since:
- 4.27
- Author:
- Eike Stepper
-
Method Summary
Modifier and TypeMethodDescriptionWaits until this position has been resolved and returns its session-specific result.voidcancel()Cancels this position because its lock change did not complete.voidcomplete(CDOLockChangeInfo info) Makes the reserved position ready with the lock change that linearized at that position.
-
Method Details
-
complete
Makes the reserved position ready with the lock change that linearized at that position. A later ready reservation cannot overtake an earlier pending reservation.- Parameters:
info- the lock change to project for this session
-
cancel
void cancel()Cancels this position because its lock change did not complete. Cancellation preserves the sequence of subsequent relevant changes without assigning a count to this position. -
awaitResult
InternalSession.LockChangeResult awaitResult()Waits until this position has been resolved and returns its session-specific result.- Returns:
- the assigned count and visible projection, or a result with no visible change
-