public class NonXMessageEvent extends UnhandledMessageEvent
Modifier and Type | Field and Description |
---|---|
static String |
PROP_AUTOACK
Property controlling whether non X messages are automatically acknowledged.
|
static boolean |
PROP_AUTOACK_DEFAULT
The default value for
PROP_AUTOACK |
count, head, next, prev
Modifier and Type | Method and Description |
---|---|
static NonXMessageEvent |
create(MessageBusBinding binding,
String messageKey,
String smaTransportMessageId,
Object unwrappedMessage,
byte[] serializedPayloadBlob,
IEventAcknowledger acknowledger)
Create a new (initialized) non X message event.
|
static Event |
create(Properties props)
Create a new (uninitialized) non X message event.
|
String |
toString()
Get a string representation of a message event
|
acknowledge, create, getAutoAck, getMessageBusBinding, getMessageChannel, getMessageKey, getMessageMetadata, getMessageSMATransportMessageId, getReason, getSerializedMetadataBlob, getSerializedPayloadBlob, getUnwrappedMessage, setAutoAck
getBackingMessage, getEventTime, getTriggeringMessage, setBackingMessage
acquire, dispose, getAcknowledger, getAttachment, getDelay, getDispatchTime, getInstanceNumber, getOfferTs, getPollTs, getPool, getRemainingTime, getScheduledTime, getSource, getType, init, isEndOfBatch, isHandled, owners, referenceTracker, setAcknowledger, setAttachment, setDelay, setDispatchTime, setEndOfBatch, setHandled, setPool, setScheduledTime, setSource
count, insertAfter, insertBefore, isLinked, next, previous, unlink, wipe
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
acquire, dispose, getAcknowledger, getAttachment, getDelay, getDispatchTime, getInstanceNumber, getRemainingTime, getScheduledTime, getSource, getType, isEndOfBatch, isHandled, owners, setAcknowledger, setAttachment, setDelay, setEndOfBatch, setHandled, setSource
referenceTracker
public static final String PROP_AUTOACK
public static final boolean PROP_AUTOACK_DEFAULT
PROP_AUTOACK
public static Event create(Properties props)
This method instantiates a new non X message event object. The method is for use by the event factory to instantiate new reconnected events. The method should not be used directly by the user since the method bypasses any event pooling i.e. it creates a new reconnected event object even if there are eligible event objects available in the event type's pool.
public static NonXMessageEvent create(MessageBusBinding binding, String messageKey, String smaTransportMessageId, Object unwrappedMessage, byte[] serializedPayloadBlob, IEventAcknowledger acknowledger)
binding
- The binding from where the event originated.messageKey
- The received message's key (may be null).smaTransportMessageId
- The received message's provider specific transport id.unwrappedMessage
- The unwrapped (un-deserialized) message.serializedPayloadBlob
- The received message payload in byte array form.
This method instantiates and initializes a non X message event. The method uses the packet factory to instantiate a new reconnected event (the factory recycles objects through the event type's object pool is configured for the type) and then initializes it with the supplied parameters.
public final String toString()
toString
in class UnhandledMessageEvent
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.