Class GrpcBackedSubscriptionQueryMessage<Q,I,U>
java.lang.Object
org.axonframework.axonserver.connector.query.subscription.GrpcBackedSubscriptionQueryMessage<Q,I,U>
- Type Parameters:
Q- a generic specifying the type of theSubscriptionQueryMessage's payloadI- a generic specifying the type of the initial result of theSubscriptionQueryResultU- a generic specifying the type of the subsequent updates of theSubscriptionQueryResult
- All Implemented Interfaces:
Serializable,org.axonframework.messaging.Message<Q>,org.axonframework.queryhandling.QueryMessage<Q,,I> org.axonframework.queryhandling.SubscriptionQueryMessage<Q,I, U>
public class GrpcBackedSubscriptionQueryMessage<Q,I,U>
extends Object
implements org.axonframework.queryhandling.SubscriptionQueryMessage<Q,I,U>
Wrapper that allows clients to access a gRPC
SubscriptionQuery message as a
SubscriptionQueryMessage.- Since:
- 4.0
- Author:
- Sara Pellegrini
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcBackedSubscriptionQueryMessage(io.axoniq.axonserver.grpc.query.SubscriptionQuery subscriptionQuery, org.axonframework.serialization.Serializer messageSerializer, org.axonframework.serialization.Serializer serializer) Instantiate aGrpcBackedSubscriptionQueryMessagewith the givensubscriptionQuery, using the providedmessageSerializerto be able to retrieve the payload andMetaDatafrom it. -
Method Summary
Modifier and TypeMethodDescriptionandMetaData(Map<String, ?> metaData) org.axonframework.messaging.MetaDataorg.axonframework.messaging.responsetypes.ResponseType<I>org.axonframework.messaging.responsetypes.ResponseType<U>withMetaData(Map<String, ?> metaData) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.messaging.Message
serializeMetaData, serializePayload
-
Constructor Details
-
GrpcBackedSubscriptionQueryMessage
public GrpcBackedSubscriptionQueryMessage(io.axoniq.axonserver.grpc.query.SubscriptionQuery subscriptionQuery, org.axonframework.serialization.Serializer messageSerializer, org.axonframework.serialization.Serializer serializer) Instantiate aGrpcBackedSubscriptionQueryMessagewith the givensubscriptionQuery, using the providedmessageSerializerto be able to retrieve the payload andMetaDatafrom it. Theserializeris solely used to deserialize the response type of the update message.- Parameters:
subscriptionQuery- theSubscriptionQuerywhich is being wrapped as aSubscriptionQueryMessagemessageSerializer- theSerializerused to deserialize the payload andMetaDatafrom the givenqueryRequestserializer- theSerializerused to deserialize the response type
-
-
Method Details
-
getUpdateResponseType
-
getQueryName
-
getResponseType
-
getIdentifier
- Specified by:
getIdentifierin interfaceorg.axonframework.messaging.Message<Q>
-
getMetaData
public org.axonframework.messaging.MetaData getMetaData()- Specified by:
getMetaDatain interfaceorg.axonframework.messaging.Message<Q>
-
getPayload
- Specified by:
getPayloadin interfaceorg.axonframework.messaging.Message<Q>
-
getPayloadType
- Specified by:
getPayloadTypein interfaceorg.axonframework.messaging.Message<Q>
-
withMetaData
-
andMetaData
-