org.apache.s4.base
Class EventMessage
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventMessage
public EventMessage()
EventMessage
public EventMessage(java.lang.String appName,
java.lang.String streamName,
byte[] serializedEvent)
- Parameters:
appName
- name of the applicationstreamName
- name of the streamserializedEvent
- application-specific Event
instance in serialized form
getAppName
public java.lang.String getAppName()
getStreamName
public java.lang.String getStreamName()
getSerializedEvent
public byte[] getSerializedEvent()