U - type of incremental updatepublic class GenericSubscriptionQueryUpdateMessage<U> extends MessageDecorator<U> implements SubscriptionQueryUpdateMessage<U>
SubscriptionQueryUpdateMessage which holds incremental update of an subscription query.| Modifier | Constructor and Description |
|---|---|
|
GenericSubscriptionQueryUpdateMessage(Class<U> declaredType,
U payload)
Initializes
GenericSubscriptionQueryUpdateMessage with incremental update of provided declaredType. |
|
GenericSubscriptionQueryUpdateMessage(Class<U> declaredType,
U payload,
Map<String,?> metaData)
Initializes
GenericSubscriptionQueryUpdateMessage with incremental update of provided declaredType and metaData. |
protected |
GenericSubscriptionQueryUpdateMessage(Message<U> delegate)
Initializes a new decorator with given
delegate message. |
|
GenericSubscriptionQueryUpdateMessage(U payload)
Initializes
GenericSubscriptionQueryUpdateMessage with incremental update. |
| Modifier and Type | Method and Description |
|---|---|
SubscriptionQueryUpdateMessage<U> |
andMetaData(Map<String,?> metaData)
Returns a copy of this Message with it MetaData merged with the given
metaData. |
static <T> SubscriptionQueryUpdateMessage<T> |
asUpdateMessage(Object payload)
Creates
GenericSubscriptionQueryUpdateMessage from provided payload which represents incremental
update. |
protected String |
describeType()
Describe the type of message, used in
MessageDecorator.toString(). |
SubscriptionQueryUpdateMessage<U> |
withMetaData(Map<String,?> metaData)
Returns a copy of this Message with the given
metaData. |
describeTo, getDelegate, getIdentifier, getMetaData, getPayload, getPayloadType, serializeMetaData, serializePayload, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdentifier, getMetaData, getPayload, getPayloadType, serializeMetaData, serializePayloadpublic GenericSubscriptionQueryUpdateMessage(U payload)
GenericSubscriptionQueryUpdateMessage with incremental update.payload - payload of the message which represent incremental updatepublic GenericSubscriptionQueryUpdateMessage(Class<U> declaredType, U payload)
GenericSubscriptionQueryUpdateMessage with incremental update of provided declaredType.declaredType - the type of the updatepayload - the payload of the updatepublic GenericSubscriptionQueryUpdateMessage(Class<U> declaredType, U payload, Map<String,?> metaData)
GenericSubscriptionQueryUpdateMessage with incremental update of provided declaredType and metaData.declaredType - the type of the updatepayload - the payload of the updatemetaData - the metadata of the updatepublic static <T> SubscriptionQueryUpdateMessage<T> asUpdateMessage(Object payload)
GenericSubscriptionQueryUpdateMessage from provided payload which represents incremental
update. The provided payload may not be null.T - type of the GenericSubscriptionQueryUpdateMessagepayload - incremental updateSubscriptionQueryUpdateMessage with the given payload.public SubscriptionQueryUpdateMessage<U> withMetaData(Map<String,?> metaData)
MessagemetaData. The payload remains unchanged.
While the implementation returned may be different than the implementation of this, implementations
must take special care in returning the same type of Message (e.g. EventMessage, DomainEventMessage) to prevent
errors further downstream.withMetaData in interface Message<U>withMetaData in interface SubscriptionQueryUpdateMessage<U>metaData - The new MetaData for the Messagepublic SubscriptionQueryUpdateMessage<U> andMetaData(Map<String,?> metaData)
MessagemetaData. The payload
remains unchanged.andMetaData in interface Message<U>andMetaData in interface SubscriptionQueryUpdateMessage<U>metaData - The MetaData to merge withprotected String describeType()
MessageDecoratorMessageDecorator.toString().
Defaults to the simple class name of the actual instance.
describeType in class MessageDecorator<U>Copyright © 2010–2020. All rights reserved.