org.apache.commons.pipeline.event
Class KeyAvailableEvent<T>

java.lang.Object
  extended by java.util.EventObject
      extended by org.apache.commons.pipeline.event.KeyAvailableEvent<T>
All Implemented Interfaces:
Serializable

public class KeyAvailableEvent<T>
extends EventObject

This event is used to signal the availability of the specified key. This is usually used for inter-branch synchronization using the RaiseKeyAvailableEventStage and/or the KeyWaitBufferStage.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
KeyAvailableEvent(Object source, T key)
          Creates a new instance of KeyAvailableEvent
 
Method Summary
 T getKey()
          Returns the key.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyAvailableEvent

public KeyAvailableEvent(Object source,
                         T key)
Creates a new instance of KeyAvailableEvent

Method Detail

getKey

public T getKey()
Returns the key.



Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.