com.softwareag.um.storage.Event Class Referenceabstract

All objects that can be added to a Storage object need to extend this class. More...

Public Member Functions

 Event ()
 Constructor for Event.
 
abstract int getID ()
 
long getKey ()
 
int getSize ()
 
long getTTL ()
 
abstract boolean isPersistent ()
 
abstract void read (fEventInputStream eventInputStream) throws IOException, ClassNotFoundException
 Constructs this event by deserialising from a stream. More...
 
void setKey (long newKey)
 Sets the event's key attribute. More...
 
abstract void write (fEventOutputStream eventOutputStream) throws IOException
 Serialises this event to an output stream. More...
 

Protected Member Functions

EventProxy getProxy ()
 

Detailed Description

All objects that can be added to a Storage object need to extend this class.

Member Function Documentation

abstract int com.softwareag.um.storage.Event.getID ( )
pure virtual
Returns
The event ID
long com.softwareag.um.storage.Event.getKey ( )
Returns
The event's key attribute
EventProxy com.softwareag.um.storage.Event.getProxy ( )
protected
Returns
The event's proxy
int com.softwareag.um.storage.Event.getSize ( )
Returns
The event's size
long com.softwareag.um.storage.Event.getTTL ( )
Returns
The event's TTL
abstract boolean com.softwareag.um.storage.Event.isPersistent ( )
pure virtual
Returns
True if the event is persistent
abstract void com.softwareag.um.storage.Event.read ( fEventInputStream  eventInputStream) throws IOException, ClassNotFoundException
pure virtual

Constructs this event by deserialising from a stream.

Parameters
eventInputStream,:The stream to read from
Exceptions
IOException
ClassNotFoundException
void com.softwareag.um.storage.Event.setKey ( long  newKey)

Sets the event's key attribute.

Parameters
newKey,:The new key to set
abstract void com.softwareag.um.storage.Event.write ( fEventOutputStream  eventOutputStream) throws IOException
pure virtual

Serialises this event to an output stream.

Parameters
eventOutputStream,:The stream to write to.
Exceptions
IOException