Uses of Class
io.fluxcapacitor.javaclient.common.Message
Packages that use Message
Package
Description
-
Uses of Message in io.fluxcapacitor.javaclient.common
Methods in io.fluxcapacitor.javaclient.common that return MessageModifier and TypeMethodDescriptionMessage.addMetadata
(Metadata metadata) Returns a new message with the combined metadata.Message.addMetadata
(Object... keyValues) Adds multiple metadata entries.Message.addMetadata
(String key, Object value) Adds a single metadata entry.Message.addMetadata
(Map<String, ?> values) Adds metadata from a given map.Attaches a user object to the metadata using the configuredUserProvider
.static Message
Converts any object into aMessage
.HasMessage.toMessage()
Returns the underlyingMessage
representation of this object.Message.toMessage()
Message.withPayload
(Object payload) Returns a new message instance with the provided payload and existing metadata, ID, and timestamp. -
Uses of Message in io.fluxcapacitor.javaclient.common.serialization
Methods in io.fluxcapacitor.javaclient.common.serialization that return MessageConstructors in io.fluxcapacitor.javaclient.common.serialization with parameters of type MessageModifierConstructorDescriptionDeserializingMessage
(@NonNull Message message, MessageType messageType, Serializer serializer) DeserializingMessage
(@NonNull Message message, MessageType messageType, String topic, Serializer serializer) -
Uses of Message in io.fluxcapacitor.javaclient.modeling
Methods in io.fluxcapacitor.javaclient.modeling that return MessageMethods in io.fluxcapacitor.javaclient.modeling with parameters of type MessageModifier and TypeMethodDescriptionApplies the given message to the entity. -
Uses of Message in io.fluxcapacitor.javaclient.publishing
Methods in io.fluxcapacitor.javaclient.publishing that return MessageModifier and TypeMethodDescriptionAdhocDispatchInterceptor.interceptDispatch
(Message message, MessageType messageType, String topic) Intercepts a message before dispatch for the given message type and topic.DispatchInterceptor.interceptDispatch
(Message message, MessageType messageType, String topic) Intercepts the dispatch of a message before it is serialized and published or locally handled.Methods in io.fluxcapacitor.javaclient.publishing that return types with arguments of type MessageModifier and TypeMethodDescriptionprotected CompletableFuture
<Message> DefaultGenericGateway.emptyReturnMessage()
CommandGateway.sendForMessage
(Message message) default CompletableFuture
<Message> GenericGateway.sendForMessage
(Message message) QueryGateway.sendForMessage
(Message message) Sends the givenMessage
and returns a future representing the resulting message.CommandGateway.sendForMessages
(Message... messages) Sends multiple messages and returns futures for the result messages.DefaultGenericGateway.sendForMessages
(Message... messages) GenericGateway.sendForMessages
(Message... messages) Sends multiple messages and returns futures for their fullMessage
responses.QueryGateway.sendForMessages
(Message... messages) Sends multiple queryMessage
s and returns a list of futures for the raw responses.Methods in io.fluxcapacitor.javaclient.publishing with parameters of type MessageModifier and TypeMethodDescriptionAdhocDispatchInterceptor.interceptDispatch
(Message message, MessageType messageType, String topic) Intercepts a message before dispatch for the given message type and topic.DispatchInterceptor.interceptDispatch
(Message message, MessageType messageType, String topic) Intercepts the dispatch of a message before it is serialized and published or locally handled.AdhocDispatchInterceptor.modifySerializedMessage
(SerializedMessage serializedMessage, Message message, MessageType messageType, String topic) Optionally modifies the serialized message before dispatch, delegating to any registered ad hoc interceptor for the current thread.default SerializedMessage
DispatchInterceptor.modifySerializedMessage
(SerializedMessage serializedMessage, Message message, MessageType messageType, String topic) Allows modifications to the serialized representation of the message before it is actually published.void
AdhocDispatchInterceptor.monitorDispatch
(Message message, MessageType messageType, String topic) Optionally monitors a dispatched message using any registered ad hoc interceptor for the current thread.default void
DispatchInterceptor.monitorDispatch
(Message message, MessageType messageType, String topic) Hook to observe the dispatch of a message.Publishes the givenMessage
to Flux Capacitor and/or local handlers.default <R> CompletableFuture
<R> Sends aMessage
and returns a future that completes with its response payload.DefaultGenericGateway.sendAndForget
(Guarantee guarantee, Message... messages) GenericGateway.sendAndForget
(Guarantee guarantee, Message... messages) Sends multipleMessage
objects with a guarantee.default CompletableFuture
<Void> GenericGateway.sendAndForget
(Message message, Guarantee guarantee) Sends aMessage
asynchronously with a given guarantee.default <R> R
GenericGateway.sendAndWait
(Message message) Sends a message and blocks for a result with a configurable timeout.CommandGateway.sendForMessage
(Message message) default CompletableFuture
<Message> GenericGateway.sendForMessage
(Message message) QueryGateway.sendForMessage
(Message message) Sends the givenMessage
and returns a future representing the resulting message.CommandGateway.sendForMessages
(Message... messages) Sends multiple messages and returns futures for the result messages.DefaultGenericGateway.sendForMessages
(Message... messages) GenericGateway.sendForMessages
(Message... messages) Sends multiple messages and returns futures for their fullMessage
responses.QueryGateway.sendForMessages
(Message... messages) Sends multiple queryMessage
s and returns a list of futures for the raw responses. -
Uses of Message in io.fluxcapacitor.javaclient.publishing.correlation
Methods in io.fluxcapacitor.javaclient.publishing.correlation that return MessageModifier and TypeMethodDescriptionCorrelatingInterceptor.interceptDispatch
(Message message, MessageType messageType, String topic) Methods in io.fluxcapacitor.javaclient.publishing.correlation with parameters of type MessageModifier and TypeMethodDescriptionCorrelatingInterceptor.interceptDispatch
(Message message, MessageType messageType, String topic) -
Uses of Message in io.fluxcapacitor.javaclient.publishing.dataprotection
Methods in io.fluxcapacitor.javaclient.publishing.dataprotection that return MessageModifier and TypeMethodDescriptionDataProtectionInterceptor.interceptDispatch
(Message m, MessageType messageType, String topic) Methods in io.fluxcapacitor.javaclient.publishing.dataprotection with parameters of type MessageModifier and TypeMethodDescriptionDataProtectionInterceptor.interceptDispatch
(Message m, MessageType messageType, String topic) -
Uses of Message in io.fluxcapacitor.javaclient.publishing.routing
Methods in io.fluxcapacitor.javaclient.publishing.routing that return MessageModifier and TypeMethodDescriptionMessageRoutingInterceptor.interceptDispatch
(Message message, MessageType messageType, String topic) Returns the unmodifiedMessage
as this interceptor only modifies the serialized form.Methods in io.fluxcapacitor.javaclient.publishing.routing with parameters of type MessageModifier and TypeMethodDescriptionMessageRoutingInterceptor.interceptDispatch
(Message message, MessageType messageType, String topic) Returns the unmodifiedMessage
as this interceptor only modifies the serialized form.MessageRoutingInterceptor.modifySerializedMessage
(SerializedMessage serializedMessage, Message m, MessageType messageType, String topic) Computes and sets the routing segment on the serialized message if not already present. -
Uses of Message in io.fluxcapacitor.javaclient.scheduling
Subclasses of Message in io.fluxcapacitor.javaclient.schedulingModifier and TypeClassDescriptionclass
Represents a scheduled message to be delivered at a specific future time.Methods in io.fluxcapacitor.javaclient.scheduling that return MessageModifier and TypeMethodDescriptionSchedulingInterceptor.interceptDispatch
(Message message, MessageType messageType, String topic) Methods in io.fluxcapacitor.javaclient.scheduling with parameters of type MessageModifier and TypeMethodDescriptionSchedulingInterceptor.interceptDispatch
(Message message, MessageType messageType, String topic) -
Uses of Message in io.fluxcapacitor.javaclient.tracking.handling
Methods in io.fluxcapacitor.javaclient.tracking.handling that return Message -
Uses of Message in io.fluxcapacitor.javaclient.tracking.handling.authentication
Methods in io.fluxcapacitor.javaclient.tracking.handling.authentication that return MessageModifier and TypeMethodDescriptionAuthenticatingInterceptor.interceptDispatch
(Message m, MessageType messageType, String topic) Methods in io.fluxcapacitor.javaclient.tracking.handling.authentication with parameters of type MessageModifier and TypeMethodDescriptionAuthenticatingInterceptor.interceptDispatch
(Message m, MessageType messageType, String topic) -
Uses of Message in io.fluxcapacitor.javaclient.web
Subclasses of Message in io.fluxcapacitor.javaclient.webModifier and TypeClassDescriptionclass
Represents a web request message within the Flux platform.class
Represents a response to aWebRequest
in the Flux platform.Methods in io.fluxcapacitor.javaclient.web that return MessageModifier and TypeMethodDescriptionWebResponseCompressingInterceptor.interceptDispatch
(Message message, MessageType messageType, String topic) No-op for message interception.WebsocketResponseInterceptor.interceptDispatch
(Message message, MessageType messageType, String topic) Intercepts and conditionally modifies an outgoing message in the context of a WebSocket request.Methods in io.fluxcapacitor.javaclient.web with parameters of type MessageModifier and TypeMethodDescriptionWebResponseCompressingInterceptor.interceptDispatch
(Message message, MessageType messageType, String topic) No-op for message interception.WebsocketResponseInterceptor.interceptDispatch
(Message message, MessageType messageType, String topic) Intercepts and conditionally modifies an outgoing message in the context of a WebSocket request.WebResponseCompressingInterceptor.modifySerializedMessage
(SerializedMessage response, Message message, MessageType type, String topic) Compresses the given response message using GZIP if the request supports compression and the response meets compression criteria.Constructors in io.fluxcapacitor.javaclient.web with parameters of type MessageModifierConstructorDescriptionConstructs a new WebRequest instance using the provided Message.Constructs a new WebResponse instance using the provided Message object.