U
- type of incremental updatepublic class GenericSubscriptionQueryUpdateMessage<U> extends GenericResultMessage<U> implements SubscriptionQueryUpdateMessage<U>
SubscriptionQueryUpdateMessage
which holds incremental update of an subscription query.Modifier | Constructor and Description |
---|---|
|
GenericSubscriptionQueryUpdateMessage(Class<U> declaredType,
Throwable exception,
Map<String,?> metaData)
Initialize the subscription query update message with given
declaredType , exception and metaData . |
|
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 |
---|---|
GenericSubscriptionQueryUpdateMessage<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() . |
GenericSubscriptionQueryUpdateMessage<U> |
withMetaData(Map<String,?> metaData)
Returns a copy of this Message with the given
metaData . |
asResultMessage, asResultMessage, describeTo, getPayload, isExceptional, optionalExceptionResult, serializePayload
getDelegate, getIdentifier, getMetaData, getPayloadType, serializeMetaData, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
exceptionDetails, exceptionResult, isExceptional, optionalExceptionResult, serializeExceptionResult, serializePayload
getIdentifier, getMetaData, getPayload, getPayloadType, serializeMetaData
public 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 GenericSubscriptionQueryUpdateMessage(Class<U> declaredType, Throwable exception, Map<String,?> metaData)
declaredType
, exception
and metaData
.declaredType
- The declared type of the Subscription Query Update Message to be createdexception
- The exception describing the cause of an errormetaData
- The meta data to contain in the messagepublic 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 GenericSubscriptionQueryUpdateMessage
payload
- incremental updateSubscriptionQueryUpdateMessage
with the given payload
.public GenericSubscriptionQueryUpdateMessage<U> withMetaData(Map<String,?> metaData)
Message
metaData
. 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 ResultMessage<U>
withMetaData
in interface SubscriptionQueryUpdateMessage<U>
withMetaData
in class GenericResultMessage<U>
metaData
- The new MetaData for the Messagepublic GenericSubscriptionQueryUpdateMessage<U> andMetaData(Map<String,?> metaData)
Message
metaData
. The payload
remains unchanged.andMetaData
in interface Message<U>
andMetaData
in interface ResultMessage<U>
andMetaData
in interface SubscriptionQueryUpdateMessage<U>
andMetaData
in class GenericResultMessage<U>
metaData
- The MetaData to merge withprotected String describeType()
MessageDecorator
MessageDecorator.toString()
.
Defaults to the simple class name of the actual instance.
describeType
in class GenericResultMessage<U>
Copyright © 2010–2020. All rights reserved.