Package org.axonframework.queryhandling
Interface StreamingQueryMessage<Q,R>
- Type Parameters:
Q- the type of streaming query payloadR- the type of the result streamed viaPublisher
- All Superinterfaces:
Message<Q>,QueryMessage<Q,,org.reactivestreams.Publisher<R>> Serializable
- All Known Implementing Classes:
GenericStreamingQueryMessage
public interface StreamingQueryMessage<Q,R>
extends QueryMessage<Q,org.reactivestreams.Publisher<R>>
A special type of
QueryMessage used for initiating streaming queries. It's special since it hard codes the
response type to PublisherResponseType.- Since:
- 4.6.0
- Author:
- Milan Savic, Stefan Dragisic
-
Method Summary
Modifier and TypeMethodDescriptionandMetaData(Map<String, ?> additionalMetaData) Returns a copy of this QueryMessage with its MetaData merged with givenmetaData.ResponseType<org.reactivestreams.Publisher<R>> The type of response expected by the sender of the querywithMetaData(Map<String, ?> metaData) Returns a copy of this QueryMessage with the givenmetaData.Methods inherited from interface org.axonframework.messaging.Message
getIdentifier, getMetaData, getPayload, getPayloadType, serializeMetaData, serializePayloadMethods inherited from interface org.axonframework.queryhandling.QueryMessage
getQueryName
-
Method Details
-
getResponseType
ResponseType<org.reactivestreams.Publisher<R>> getResponseType()Description copied from interface:QueryMessageThe type of response expected by the sender of the query- Specified by:
getResponseTypein interfaceQueryMessage<Q,R> - Returns:
- the type of response expected by the sender of the query
-
withMetaData
Description copied from interface:QueryMessageReturns a copy of this QueryMessage with the givenmetaData. The payload remains unchanged.- Specified by:
withMetaDatain interfaceMessage<Q>- Specified by:
withMetaDatain interfaceQueryMessage<Q,R> - Parameters:
metaData- The new MetaData for the QueryMessage- Returns:
- a copy of this message with the given MetaData
-
andMetaData
Description copied from interface:QueryMessageReturns a copy of this QueryMessage with its MetaData merged with givenmetaData. The payload remains unchanged.- Specified by:
andMetaDatain interfaceMessage<Q>- Specified by:
andMetaDatain interfaceQueryMessage<Q,R> - Parameters:
additionalMetaData- The MetaData to merge into the QueryMessage- Returns:
- a copy of this message with the given additional MetaData
-