SilverStream
Application Server 3.5

com.sssw.rt.event
Class AgoEvent

java.lang.Object
 |
 +--java.util.EventObject
       |
       +--com.sssw.rt.event.AgoEvent
All Implemented Interfaces:
Serializable

public class AgoEvent
extends EventObject

Generic Event object that carries a single argument object along with the source of the event.

See Also:
AgpEventLinkEvent, AgpFileUploadEvent, AgoBusinessObjectEvent, AgoClusterServerStartEvent, AgoClusterServerStopEvent, AgoHttpRequestEvent, AgoInvokedEvent, AgoDataSourceEvent, AgoMailEvent, AgoScheduledEvent, AgoServerStartEvent, AgoServerStopEvent, AgoTableEvent, AgoTableRowEvent, AgoRowDeleteEvent, AgoRowInsertEvent, AgoRowModifyEvent, AgoTransactionAbortEvent, AgoUserLoginEvent, AgoUserLogoutEvent, Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AgoEvent(Object source, int id, Object argument)
          Construct an AgoEventObject
AgoEvent(Object source, Object argument)
          Construct an AgoEventObject
 
Method Summary
 void consume()
          Mark the event as consumed
 Object getArgument()
          Returns the argument for the event
 int getID()
          Get the ID of the event
 boolean wasConsumed()
          Determine whether the event has been consumed
 
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

AgoEvent

public AgoEvent(Object source,
                Object argument)
Construct an AgoEventObject
Parameters:
source - the source of the event; that is, the object firing the event
argument - an arbitrary argument carried by the event

AgoEvent

public AgoEvent(Object source,
                int id,
                Object argument)
Construct an AgoEventObject
Parameters:
source - the source of the event; that is, the object firing the event
id - an identifier for the event, used by some subclasses
argument - an arbitrary argument carried by the event
Method Detail

wasConsumed

public boolean wasConsumed()
Determine whether the event has been consumed

consume

public void consume()
Mark the event as consumed

getArgument

public Object getArgument()
Returns the argument for the event

getID

public int getID()
Get the ID of the event

SilverStream
Application Server 3.5