public class Event extends Message
DxlClient.sendEvent(com.opendxl.client.message.Event)
method of a client instance. Event messages are sent
by one publisher and received by one or more recipients that are currently subscribed to the
Message.getDestinationTopic()
associated with the event (otherwise known as one-to-many).CHARSET_ASCII, CHARSET_UTF8, MESSAGE_TYPE_ERROR, MESSAGE_TYPE_EVENT, MESSAGE_TYPE_REQUEST, MESSAGE_TYPE_RESPONSE, MESSAGE_VERSION
Constructor and Description |
---|
Event(DxlClient client,
java.lang.String destinationTopic)
Constructor for
Event message |
Event(java.lang.String destinationTopic)
Constructor for
Event message |
Event(java.lang.String sourceClientId,
java.lang.String destinationTopic)
Constructor for
Event message |
Modifier and Type | Method and Description |
---|---|
byte |
getMessageType()
Returns the numeric type of the message
|
fromBytes, getBrokerIds, getClientIds, getDestinationTopic, getDestTenantGuids, getMessageId, getMessagePack, getOtherFields, getPayload, getSourceBrokerId, getSourceClientId, getSourceClientInstanceId, getSourceTenantGuid, getVersion, setBrokerIds, setClientIds, setDestinationTopic, setDestTenantGuids, setOtherFields, setPayload, setSourceClientId, setSourceClientInstanceId, setSourceTenantGuid, toBytes
public Event(DxlClient client, java.lang.String destinationTopic)
Event
messageclient
- The client that will be sending this event.destinationTopic
- The topic to publish the message topublic Event(java.lang.String destinationTopic)
Event
messagedestinationTopic
- The topic to publish the message topublic Event(java.lang.String sourceClientId, java.lang.String destinationTopic)
Event
messagesourceClientId
- The identifier of the client that will be sending this message.destinationTopic
- The topic to publish the message topublic byte getMessageType()
getMessageType
in class Message