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 QueryResponseMessage with its MetaData merged with 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 QueryResponseMessage with the given
metaData . |
describeTo, getDelegate, getIdentifier, getMetaData, getPayload, getPayloadType, serializeMetaData, serializePayload, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdentifier, getMetaData, getPayload, getPayloadType
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 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 SubscriptionQueryUpdateMessage<U> withMetaData(Map<String,?> metaData)
QueryResponseMessage
metaData
. The payload remains unchanged.withMetaData
in interface Message<U>
withMetaData
in interface QueryResponseMessage<U>
withMetaData
in interface SubscriptionQueryUpdateMessage<U>
metaData
- The new MetaData for the QueryResponseMessagepublic SubscriptionQueryUpdateMessage<U> andMetaData(Map<String,?> metaData)
QueryResponseMessage
metaData
. The payload
remains unchanged.andMetaData
in interface Message<U>
andMetaData
in interface QueryResponseMessage<U>
andMetaData
in interface SubscriptionQueryUpdateMessage<U>
metaData
- The MetaData to merge into the QueryResponseMessageprotected String describeType()
MessageDecorator
MessageDecorator.toString()
.
Defaults to the simple class name of the actual instance.
describeType
in class MessageDecorator<U>
Copyright © 2010–2018. All rights reserved.