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 Type
    Method
    Description
    Waits until this position has been resolved and returns its session-specific result.
    void
    Cancels this position because its lock change did not complete.
    void
    Makes the reserved position ready with the lock change that linearized at that position.
  • Method Details

    • complete

      void complete(CDOLockChangeInfo info)
      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

      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