public class BrokerMessage
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
Message
Serialized message that shall be notified to subscribers.
|
java.lang.String[] |
MessageTypes
Array of message types.
|
EBrokerRequest |
Request
Type of the request.
|
Constructor and Description |
---|
BrokerMessage()
Default constructor used for serialization/deserialization.
|
BrokerMessage(EBrokerRequest request,
java.lang.String[] messageTypes)
Constructs the message requesting the broker to subscribe or unsubscribe events.
|
BrokerMessage(java.lang.String messageTypeId,
java.lang.Object message)
Constructs the broker message requesting the broker to publish an event.
|
public EBrokerRequest Request
public java.lang.String[] MessageTypes
public java.lang.Object Message
public BrokerMessage()
public BrokerMessage(EBrokerRequest request, java.lang.String[] messageTypes)
request
- subscribe or unsubscribe requestmessageTypes
- message types that shall be subscribed or unsubscribedpublic BrokerMessage(java.lang.String messageTypeId, java.lang.Object message)
messageTypeId
- message type that shall be published.message
- serialized message to be published.