wt.locks
Class LockServiceEvent

java.lang.Object
  extended by wt.events.KeyedEvent
      extended by 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:
Serialized Form

Field Summary
static String POST_LOCK
          A constant that defines an event marking the occurrance of a persistent lock that has completed.
static String POST_UNLOCK
          A constant that defines an event marking the occurrance of a persistent unlock that has completed.
static String PRE_LOCK
          A constant that defines an event marking the occurrance of a persistent lock that is about to commense.
static String PRE_UNLOCK
          A constant that defines an event marking the occurrance of a persistent unlock that is about to commense.
 
Method Summary
 Lockable getTarget()
          Gets the lockable object target of the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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:
Constant Field Values

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:
Constant Field Values

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:
Constant Field Values

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:
Constant Field Values
Method Detail

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