org.apache.s4.base
Class EventMessage

java.lang.Object
  extended by org.apache.s4.base.EventMessage

public class EventMessage
extends java.lang.Object

Encapsulates application-level events of type Event.

Indeed, events that are defined at the application level can only be handled by the classloader of the corresponding application.

Includes routing information (application name, stream name), so that this message can be dispatched at the communication level.


Constructor Summary
EventMessage()
           
EventMessage(java.lang.String appName, java.lang.String streamName, byte[] serializedEvent)
           
 
Method Summary
 java.lang.String getAppName()
           
 byte[] getSerializedEvent()
           
 java.lang.String getStreamName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventMessage

public EventMessage()

EventMessage

public EventMessage(java.lang.String appName,
                    java.lang.String streamName,
                    byte[] serializedEvent)
Parameters:
appName - name of the application
streamName - name of the stream
serializedEvent - application-specific Event instance in serialized form
Method Detail

getAppName

public java.lang.String getAppName()

getStreamName

public java.lang.String getStreamName()

getSerializedEvent

public byte[] getSerializedEvent()