Uses of Interface
org.axonframework.messaging.responsetypes.ResponseType
Packages that use ResponseType
Package
Description
-
Uses of ResponseType in org.axonframework.commandhandling.gateway
Methods in org.axonframework.commandhandling.gateway with parameters of type ResponseTypeModifier and TypeMethodDescription<C,R> CommandGatewayFactory CommandGatewayFactory.registerCommandCallback(CommandCallback<C, R> callback, ResponseType<R> responseType) Registers thecallback, which is invoked for each sent command, unless Axon is able to detect that the result of the command does not match the type accepted by the callback. -
Uses of ResponseType in org.axonframework.messaging.responsetypes
Classes in org.axonframework.messaging.responsetypes that implement ResponseTypeModifier and TypeClassDescriptionclassAbstract implementation of theResponseTypewhich contains match functions for the majority of theTypeoptions available.classAResponseTypeimplementation that will match with query handlers which return a single instance of the expected response type.classAResponseTypeimplementation that will match with query handlers which return a multiple instances of the expected response type.classAResponseTypeimplementation that will match with query handlers which return a single instance of the expected response type, but returns that as an Optional containing the result.classAResponseTypeimplementation that will match with query handlers that return aPublisherstream of the expected response type.Methods in org.axonframework.messaging.responsetypes that return ResponseTypeModifier and TypeMethodDescriptionResponseType<?>OptionalResponseType.forSerialization()ResponseType<?>PublisherResponseType.forSerialization()default ResponseType<?>ResponseType.forSerialization()Returns theResponseTypeinstance that should be used when serializing responses.static <R> ResponseType<R>ResponseTypes.instanceOf(Class<R> type) Specify the desire to retrieve a single instance of typeRwhen performing a query.static <R> ResponseType<List<R>>ResponseTypes.multipleInstancesOf(Class<R> type) Specify the desire to retrieve a collection of instances of typeRwhen performing a query.static <R> ResponseType<Optional<R>>ResponseTypes.optionalInstanceOf(Class<R> type) Specify the desire to retrieve anOptional<R>when performing a query.static <R> ResponseType<org.reactivestreams.Publisher<R>>ResponseTypes.publisherOf(Class<R> type) Specify the desire to retrieve a Publisher (reactive stream) of instances of typeRwhen performing a query.Constructors in org.axonframework.messaging.responsetypes with parameters of type ResponseTypeModifierConstructorDescriptionConvertingResponseMessage(ResponseType<R> expectedResponseType, QueryResponseMessage<?> responseMessage) Initialize a response message, usingexpectedResponseTypeto convert the payload from theresponseMessage, if necessary. -
Uses of ResponseType in org.axonframework.queryhandling
Methods in org.axonframework.queryhandling that return ResponseTypeModifier and TypeMethodDescriptionGenericQueryMessage.getResponseType()QueryMessage.getResponseType()The type of response expected by the sender of the queryResponseType<org.reactivestreams.Publisher<R>>StreamingQueryMessage.getResponseType()GenericSubscriptionQueryMessage.getUpdateResponseType()SubscriptionQueryMessage.getUpdateResponseType()Returns the type of incremental responses.Methods in org.axonframework.queryhandling with parameters of type ResponseTypeModifier and TypeMethodDescriptionbooleanQuerySubscription.canHandle(ResponseType<?> queryResponseType) Check if thisQuerySubscriptioncan handle the givenqueryResponseType, by calling thematches(Type)function on it and providing the setresponseTypeof this subscription.<R,Q> CompletableFuture<R> DefaultQueryGateway.query(String queryName, Q query, ResponseType<R> responseType) <R,Q> CompletableFuture<R> QueryGateway.query(String queryName, Q query, ResponseType<R> responseType) Sends givenqueryover theQueryBus, expecting a response in the form ofresponseTypefrom a single source.default <R,Q> CompletableFuture<R> QueryGateway.query(Q query, ResponseType<R> responseType) Sends givenqueryover theQueryBus, expecting a response in the form ofresponseTypefrom a single source.<R,Q> Stream<R> DefaultQueryGateway.scatterGather(String queryName, Q query, ResponseType<R> responseType, long timeout, TimeUnit timeUnit) <R,Q> Stream<R> QueryGateway.scatterGather(String queryName, Q query, ResponseType<R> responseType, long timeout, TimeUnit timeUnit) Sends givenqueryover theQueryBus, expecting a response in the form ofresponseTypefrom several sources.default <R,Q> Stream<R> QueryGateway.scatterGather(Q query, ResponseType<R> responseType, long timeout, TimeUnit timeUnit) Sends givenqueryover theQueryBus, expecting a response in the form ofresponseTypefrom several sources.<Q,I, U> SubscriptionQueryResult<I, U> DefaultQueryGateway.subscriptionQuery(String queryName, Q query, ResponseType<I> initialResponseType, ResponseType<U> updateResponseType, int updateBufferSize) <Q,I, U> SubscriptionQueryResult<I, U> DefaultQueryGateway.subscriptionQuery(String queryName, Q query, ResponseType<I> initialResponseType, ResponseType<U> updateResponseType, SubscriptionQueryBackpressure backpressure, int updateBufferSize) Deprecated.default <Q,I, U> SubscriptionQueryResult<I, U> QueryGateway.subscriptionQuery(String queryName, Q query, ResponseType<I> initialResponseType, ResponseType<U> updateResponseType) Sends givenqueryover theQueryBusand returns result containing initial response and incremental updates (received at the moment the query is sent, until it is cancelled by the caller or closed by the emitting side).<Q,I, U> SubscriptionQueryResult<I, U> QueryGateway.subscriptionQuery(String queryName, Q query, ResponseType<I> initialResponseType, ResponseType<U> updateResponseType, int updateBufferSize) Sends givenqueryover theQueryBusand returns result containing initial response and incremental updates (received at the moment the query is sent, until it is cancelled by the caller or closed by the emitting side).default <Q,I, U> SubscriptionQueryResult<I, U> QueryGateway.subscriptionQuery(String queryName, Q query, ResponseType<I> initialResponseType, ResponseType<U> updateResponseType, SubscriptionQueryBackpressure backpressure) Deprecated.in favour of using {QueryGateway.subscriptionQuery(String, Object, ResponseType, ResponseType)}.<Q,I, U> SubscriptionQueryResult<I, U> QueryGateway.subscriptionQuery(String queryName, Q query, ResponseType<I> initialResponseType, ResponseType<U> updateResponseType, SubscriptionQueryBackpressure backpressure, int updateBufferSize) Deprecated.in favour of using {QueryGateway.subscriptionQuery(String, Object, ResponseType, ResponseType, int)}.default <Q,I, U> SubscriptionQueryResult<I, U> QueryGateway.subscriptionQuery(Q query, ResponseType<I> initialResponseType, ResponseType<U> updateResponseType) Sends givenqueryover theQueryBusand returns result containing initial response and incremental updates (received at the moment the query is sent, until it is cancelled by the caller or closed by the emitting side).Constructors in org.axonframework.queryhandling with parameters of type ResponseTypeModifierConstructorDescriptionGenericQueryMessage(Message<T> delegate, String queryName, ResponseType<R> responseType) Initialize the Query Message, using givendelegateas the carrier of payload and metadata and givenqueryNameand expecting the givenresponseType.GenericQueryMessage(T payload, String queryName, ResponseType<R> responseType) Initializes the message with the givenpayload,queryNameand expectedresponseType.GenericQueryMessage(T payload, ResponseType<R> responseType) Initializes the message with the givenpayloadand expectedresponseType.GenericStreamingQueryMessage(Message<Q> delegate, String queryName, ResponseType<org.reactivestreams.Publisher<R>> responseType) Initialize the Query Message, using givendelegateas the carrier of payload and metadata and givenqueryNameand expecting the givenresponseType.GenericStreamingQueryMessage(Q payload, String queryName, ResponseType<org.reactivestreams.Publisher<R>> responseType) Initializes the message with the givenpayload,queryNameand expectedresponseType.GenericStreamingQueryMessage(Q payload, ResponseType<org.reactivestreams.Publisher<R>> responseType) Initializes the message with the givenpayloadand expectedresponseType.GenericSubscriptionQueryMessage(Message<Q> delegate, String queryName, ResponseType<I> responseType, ResponseType<U> updateResponseType) Initializes the message, using givendelegateas the carrier of payload and metadata and givenqueryName, expectedresponseTypeand expectedupdateResponseType.GenericSubscriptionQueryMessage(Q payload, String queryName, ResponseType<I> responseType, ResponseType<U> updateResponseType) Initializes the message with the givenpayload,queryName, expectedresponseTypeand expectedupdateResponseType.GenericSubscriptionQueryMessage(Q payload, ResponseType<I> responseType, ResponseType<U> updateResponseType) Initializes the message with the givenpayload, expectedresponseTypeand expectedupdateResponseType.
DefaultQueryGateway.subscriptionQuery(String, Object, ResponseType, ResponseType, int)}