Package wt.locks

Class LockServiceEvent

java.lang.Object
wt.events.KeyedEvent
wt.locks.LockServiceEvent
All Implemented Interfaces:
Serializable, wt.events.summary.SummarizedEvent

public class LockServiceEvent extends KeyedEvent implements Serializable
Provides an abstraction of an extended keyed event used in conjunction with the standard implementation of the server-side functionality as defined by the LockService interface. This event could also be used by a custom implementation of the LockService.

Supported API: true

Extendable: false
See Also:
  • Field Details

    • PRE_LOCK

      public static final String PRE_LOCK
      A constant that defines an event marking the occurrance of a persistent lock that is about to commense. Listener's of this event can stipulate that preconditions have not been satisfied by means of throwing an exception which acts as a veto.

      Supported API: true
      See Also:
    • POST_LOCK

      public static final String POST_LOCK
      A constant that defines an event marking the occurrance of a persistent lock that has completed. Listener's of this event can perform post-processing related to the locking of an object, and can stipulate that postconditions have not been satisfied by means of throwing an exception which acts as a veto.

      Supported API: true
      See Also:
    • PRE_UNLOCK

      public static final String PRE_UNLOCK
      A constant that defines an event marking the occurrance of a persistent unlock that is about to commense. Listener's of this event can stipulate that preconditions have not been satisfied by means of throwing an exception which acts as a veto.

      Supported API: true
      See Also:
    • POST_UNLOCK

      public static final String POST_UNLOCK
      A constant that defines an event marking the occurrance of a persistent unlock that has completed. Listener's of this event can perform post-processing related to the unlocking of an object, and can stipulate that postconditions have not been satisfied by means of throwing an exception which acts as a veto.

      Supported API: true
      See Also:
  • Method Details

    • getTarget

      public Lockable getTarget()
      Gets the lockable object target of the event.

      Supported API: true
      Returns:
      Lockable
      See Also:
      • wt.locks.PRE_LOCK
      • wt.locks.POST_LOCK
      • wt.locks.PRE_UNLOCK
      • wt.locks.POST_UNLOCK