Uses of Class
io.fluxcapacitor.common.api.Metadata
Packages that use Metadata
Package
Description
-
Uses of Metadata in io.fluxcapacitor.common.api
Methods in io.fluxcapacitor.common.api that return MetadataModifier and TypeMethodDescriptionMetadata.addIfAbsent
(Object key, Object value) Adds the specified key-value pair to the metadata if the key is not already present.Metadata.addIfAbsent
(Map<?, ?> map) Adds all entries from the specified map to the currentMetadata
, ignoring keys that already exist.static Metadata
Metadata.empty()
Creates an empty instance of the Metadata class with no entries.HasMetadata.getMetadata()
Returns theMetadata
associated with this object.static Metadata
Creates a newMetadata
instance with the provided key-value pairs.static Metadata
Creates a newMetadata
instance with a single key-value pair.static Metadata
Creates a new instance ofMetadata
populated with the given map.Creates a new instance ofMetadata
by combining the current metadata with the given metadata.Creates a newMetadata
instance by adding the specified key-value pairs.Returns a newMetadata
instance with the specified key-value pair added or updated in the current entries.Returns a new Metadata instance that includes all the current entries and the mappings provided in the given map.Returns a new Metadata instance without the specified key.Returns a new instance of Metadata, excluding all entries where the provided predicate evaluates to true for the entry keys.Adds a trace entry with the specified key and value to the metadata.Methods in io.fluxcapacitor.common.api with parameters of type MetadataModifier and TypeMethodDescriptionboolean
Checks whether the current metadata contains all entries of the specified metadata.Creates a new instance ofMetadata
by combining the current metadata with the given metadata.Constructors in io.fluxcapacitor.common.api with parameters of type MetadataModifierConstructorDescriptionSerializedMessage
(Data<byte[]> data, Metadata metadata, String messageId, Long timestamp) -
Uses of Metadata in io.fluxcapacitor.common.search
Methods in io.fluxcapacitor.common.search with parameters of type MetadataModifier and TypeMethodDescriptionprotected Stream
<FacetEntry> protected Set
<FacetEntry> Inverter.toDocument
(Object object, String type, int revision, String id, String collection, Instant timestamp, Instant end, Metadata metadata) Converts the given object into aSerializedDocument
, which is suitable for indexing or storage in a document store.JacksonInverter.toDocument
(Object value, String type, int revision, String id, String collection, Instant timestamp, Instant end, Metadata metadata) -
Uses of Metadata in io.fluxcapacitor.javaclient
Methods in io.fluxcapacitor.javaclient with parameters of type MetadataModifier and TypeMethodDescriptionstatic void
FluxCapacitor.publishEvent
(Object payload, Metadata metadata) Publishes an event with given payload and metadata.static void
FluxCapacitor.publishMetrics
(Object payload, Metadata metadata) Publishes a metrics event with given payload and metadata.static <R> CompletableFuture
<R> Sends a query with given payload and metadata and returns a future that will be completed with the query's result.static <R> CompletableFuture
<R> Sends a query with given payload and metadata and returns a future that will be completed with the query's result.static <R> R
FluxCapacitor.queryAndWait
(Request<R> payload, Metadata metadata) Sends a query with given payload and metadata and returns the query's result.static <R> R
FluxCapacitor.queryAndWait
(Object payload, Metadata metadata) Sends a query with given payload and metadata and returns the query's result.static void
FluxCapacitor.sendAndForgetCommand
(Object payload, Metadata metadata) Sends a command with given payload and metadata and don't wait for a result.static void
FluxCapacitor.sendAndForgetCommand
(Object payload, Metadata metadata, Guarantee guarantee) Sends a command with given payload and metadata and don't wait for a result.static <R> CompletableFuture
<R> FluxCapacitor.sendCommand
(Request<R> payload, Metadata metadata) Sends a command with given payload and metadata and returns a future that will be completed with the command's result.static <R> CompletableFuture
<R> FluxCapacitor.sendCommand
(Object payload, Metadata metadata) Sends a command with given payload and metadata and returns a future that will be completed with the command's result.static <R> R
FluxCapacitor.sendCommandAndWait
(Request<R> payload, Metadata metadata) Sends a command with given payload and metadata and returns a future that will be completed with the command's result.static <R> R
FluxCapacitor.sendCommandAndWait
(Object payload, Metadata metadata) Sends a command with given payload and metadata and returns a future that will be completed with the command's result. -
Uses of Metadata in io.fluxcapacitor.javaclient.common
Methods in io.fluxcapacitor.javaclient.common with parameters of type MetadataModifier and TypeMethodDescriptionMessage.addMetadata
(Metadata metadata) Returns a new message with the combined metadata.Constructors in io.fluxcapacitor.javaclient.common with parameters of type Metadata -
Uses of Metadata in io.fluxcapacitor.javaclient.common.serialization
Methods in io.fluxcapacitor.javaclient.common.serialization that return MetadataMethods in io.fluxcapacitor.javaclient.common.serialization with parameters of type Metadata -
Uses of Metadata in io.fluxcapacitor.javaclient.common.serialization.jackson
Methods in io.fluxcapacitor.javaclient.common.serialization.jackson with parameters of type Metadata -
Uses of Metadata in io.fluxcapacitor.javaclient.common.websocket
Methods in io.fluxcapacitor.javaclient.common.websocket that return MetadataMethods in io.fluxcapacitor.javaclient.common.websocket with parameters of type MetadataModifier and TypeMethodDescriptionprotected void
AbstractWebsocketClient.tryPublishMetrics
(JsonType message, Metadata metadata) -
Uses of Metadata in io.fluxcapacitor.javaclient.modeling
Methods in io.fluxcapacitor.javaclient.modeling that return MetadataMethods in io.fluxcapacitor.javaclient.modeling with parameters of type MetadataModifier and TypeMethodDescriptionApplies an event and associated metadata to produce a resulting entity.Entity.assertAndApply
(Object payload, Metadata metadata) Verifies that the provided update is legal given the current state of the aggregate and on success applies it to the aggregate. -
Uses of Metadata in io.fluxcapacitor.javaclient.persisting.search
Methods in io.fluxcapacitor.javaclient.persisting.search that return MetadataMethods in io.fluxcapacitor.javaclient.persisting.search with parameters of type MetadataModifier and TypeMethodDescriptiondefault IndexOperation
IndexOperation.addMetadata
(@NonNull Metadata metadata) Adds metadata to the index operation, merging with any previously set metadata.DefaultDocumentStore.index
(@NonNull Object object, Object id, Object collection, Instant begin, Instant end, Metadata metadata, Guarantee guarantee, boolean ifNotExists) DocumentStore.index
(@NotNull Object object, Object id, Object collection, Instant begin, Instant end, Metadata metadata, Guarantee guarantee, boolean ifNotExists) Indexes a document with the specified guarantees, metadata, and if-not-exists condition.Replaces all metadata in this operation with the given metadata.DocumentSerializer.toDocument
(Object value, String id, String collection, Instant timestamp, Instant end, Metadata metadata) Serializes a given value into aSerializedDocument
, using the specified identifiers, timestamps, and metadata. -
Uses of Metadata in io.fluxcapacitor.javaclient.publishing
Methods in io.fluxcapacitor.javaclient.publishing with parameters of type MetadataModifier and TypeMethodDescriptionprotected SerializedMessage
DefaultResultGateway.interceptDispatch
(Object payload, Metadata metadata) default void
Publishes an event with the specified payload and metadata.default void
Publishes a metrics payload with the specified metadata and aGuarantee.NONE
delivery guarantee.Publishes a metrics message with the specified metadata and delivery guarantee.default void
Reports an error with the given payload and metadata using the defaultGuarantee.NONE
.Reports an error with the given payload, metadata, and delivery guarantee.DefaultResultGateway.respond
(Object payload, Metadata metadata, String target, Integer requestId, Guarantee guarantee) ResultGateway.respond
(Object payload, Metadata metadata, String target, Integer requestId, Guarantee guarantee) Sends a response with the specified payload, metadata, target, request ID, and delivery guarantee.<R> CompletableFuture
<R> Sends a typed request command with metadata and returns a future for the result.<R> CompletableFuture
<R> Sends a command with metadata and returns a future for the result.default <R> CompletableFuture
<R> Sends aRequest
with metadata and returns a future with its response.default <R> CompletableFuture
<R> Sends a message with custom metadata and returns a future with its response.<R> CompletableFuture
<R> Sends a typedRequest
query with additional metadata and returns a future with the result.<R> CompletableFuture
<R> Sends the given query along with metadata asynchronously and returns a future representing the result.void
CommandGateway.sendAndForget
(Object payload, Metadata metadata) Sends a command with metadata without waiting for a result.void
CommandGateway.sendAndForget
(Object payload, Metadata metadata, Guarantee guarantee) Sends a command with metadata and delivery guarantee, without waiting for a result.default void
GenericGateway.sendAndForget
(Object payload, Metadata metadata) Sends a message with custom payload and metadata asynchronously.default void
GenericGateway.sendAndForget
(Object payload, Metadata metadata, Guarantee guarantee) Sends a message with payload, metadata, and delivery guarantee asynchronously.<R> R
CommandGateway.sendAndWait
(Request<R> payload, Metadata metadata) Sends a typed request command with metadata and waits for the result.<R> R
CommandGateway.sendAndWait
(Object payload, Metadata metadata) Sends a command with metadata and waits for the result.default <R> R
GenericGateway.sendAndWait
(Request<R> payload, Metadata metadata) Sends aRequest
with metadata and blocks for a response.default <R> R
GenericGateway.sendAndWait
(Object payload, Metadata metadata) Sends a message with metadata and blocks for a response.<R> R
QueryGateway.sendAndWait
(Request<R> payload, Metadata metadata) Sends a typedRequest
query with metadata and waits for the result.<R> R
QueryGateway.sendAndWait
(Object payload, Metadata metadata) Sends the given query and metadata, then waits for the result. -
Uses of Metadata in io.fluxcapacitor.javaclient.publishing.client
Methods in io.fluxcapacitor.javaclient.publishing.client that return Metadata -
Uses of Metadata in io.fluxcapacitor.javaclient.scheduling
Methods in io.fluxcapacitor.javaclient.scheduling with parameters of type MetadataModifier and TypeMethodDescriptionSchedule.addMetadata
(Metadata metadata) Returns a new schedule with additional metadata.default void
MessageScheduler.schedule
(Object schedulePayload, Metadata metadata, String scheduleId, Duration delay) Schedule a message with payload and metadata using a delay, using theGuarantee.SENT
guarantee.default void
MessageScheduler.schedule
(Object schedulePayload, Metadata metadata, String scheduleId, Instant deadline) Schedule a message with payload and metadata, using theGuarantee.SENT
guarantee.default void
MessageScheduler.scheduleCommand
(Object schedulePayload, Metadata metadata, String scheduleId, Duration delay) Schedule a command with metadata and delay, using theGuarantee.SENT
guarantee.default void
MessageScheduler.scheduleCommand
(Object schedulePayload, Metadata metadata, String scheduleId, Instant deadline) Schedule a command message with attached metadata, using theGuarantee.SENT
guarantee.Schedule.withMetadata
(Metadata metadata) Returns a new instance with the given metadata.Constructors in io.fluxcapacitor.javaclient.scheduling with parameters of type Metadata -
Uses of Metadata in io.fluxcapacitor.javaclient.tracking.client
Methods in io.fluxcapacitor.javaclient.tracking.client that return Metadata -
Uses of Metadata in io.fluxcapacitor.javaclient.tracking.handling
Methods in io.fluxcapacitor.javaclient.tracking.handling with parameters of type Metadata -
Uses of Metadata in io.fluxcapacitor.javaclient.tracking.handling.authentication
Methods in io.fluxcapacitor.javaclient.tracking.handling.authentication that return MetadataModifier and TypeMethodDescriptionAbstractUserProvider.addToMetadata
(Metadata metadata, User user, boolean ifAbsent) Adds aUser
to the metadata using the configured key.DelegatingUserProvider.addToMetadata
(Metadata metadata, User user, boolean ifAbsent) NoOpUserProvider.addToMetadata
(Metadata metadata, User user, boolean ifAbsent) default Metadata
UserProvider.addToMetadata
(Metadata metadata, User user) Adds user-related metadata to a message, overwriting existing values if present.UserProvider.addToMetadata
(Metadata metadata, User user, boolean ifAbsent) Adds user-related metadata to a message.AbstractUserProvider.removeFromMetadata
(Metadata metadata) Removes the user entry from the metadata.DelegatingUserProvider.removeFromMetadata
(Metadata metadata) NoOpUserProvider.removeFromMetadata
(Metadata metadata) UserProvider.removeFromMetadata
(Metadata metadata) Removes any user-related metadata entries from the givenMetadata
.Methods in io.fluxcapacitor.javaclient.tracking.handling.authentication with parameters of type MetadataModifier and TypeMethodDescriptionAbstractUserProvider.addToMetadata
(Metadata metadata, User user, boolean ifAbsent) Adds aUser
to the metadata using the configured key.DelegatingUserProvider.addToMetadata
(Metadata metadata, User user, boolean ifAbsent) NoOpUserProvider.addToMetadata
(Metadata metadata, User user, boolean ifAbsent) default Metadata
UserProvider.addToMetadata
(Metadata metadata, User user) Adds user-related metadata to a message, overwriting existing values if present.UserProvider.addToMetadata
(Metadata metadata, User user, boolean ifAbsent) Adds user-related metadata to a message.boolean
AbstractUserProvider.containsUser
(Metadata metadata) Returnstrue
if the metadata contains a user entry under the configured key.boolean
DelegatingUserProvider.containsUser
(Metadata metadata) boolean
NoOpUserProvider.containsUser
(Metadata metadata) boolean
UserProvider.containsUser
(Metadata metadata) Checks if the given metadata contains user information that can be resolved by this provider.AbstractUserProvider.removeFromMetadata
(Metadata metadata) Removes the user entry from the metadata.DelegatingUserProvider.removeFromMetadata
(Metadata metadata) NoOpUserProvider.removeFromMetadata
(Metadata metadata) UserProvider.removeFromMetadata
(Metadata metadata) Removes any user-related metadata entries from the givenMetadata
. -
Uses of Metadata in io.fluxcapacitor.javaclient.web
Methods in io.fluxcapacitor.javaclient.web that return MetadataModifier and TypeMethodDescriptionstatic Metadata
WebResponse.asMetadata
(int statusCode, Map<String, List<String>> headers) Constructs a Metadata object containing the provided status code and headers.Methods in io.fluxcapacitor.javaclient.web with parameters of type MetadataModifier and TypeMethodDescriptionWebRequest.addMetadata
(Metadata metadata) WebResponse.addMetadata
(Metadata metadata) static Optional
<HttpCookie> Retrieves the first cookie with the given name from the provided Metadata object.Retrieves the first header value for the given name from the provided Metadata object.Retrieves the first header value for the given name from the provided Metadata object.WebRequest.getHeaders
(Metadata metadata) Retrieves a case-insensitive map of headers from the provided Metadata object.WebResponse.getHeaders
(Metadata metadata) Retrieves a case-insensitive map of headers from the provided Metadata object.WebUtils.getHeaders
(Metadata metadata) Retrieves a case-insensitive map of headers from the provided Metadata object.static String
Extracts the HTTP or WebSocket method (e.g., "GET", "POST", "WS_OPEN") from the provided Metadata object.static String
WebRequest.getSocketSessionId
(Metadata metadata) Retrieves the WebSocket session ID from the provided metadata, ornull
if it is missing.static Integer
WebResponse.getStatusCode
(Metadata metadata) Retrieves the status code from the provided metadata.static String
Extracts the request path from the provided Metadata object.Maps a raw handler return value and associated metadata into aWebResponse
.Maps a response and optional metadata into aWebResponse
.static String
WebRequest.requireSocketSessionId
(Metadata metadata) Retrieves the WebSocket session ID from the provided metadata or throws an exception if it is missing.WebResponseGateway.respond
(Object payload, Metadata metadata, String target, Integer requestId, Guarantee guarantee) WebRequest.withMetadata
(Metadata metadata) WebResponse.withMetadata
(Metadata metadata) Constructors in io.fluxcapacitor.javaclient.web with parameters of type Metadata -
Uses of Metadata in io.fluxcapacitor.proxy
Methods in io.fluxcapacitor.proxy that return MetadataModifier and TypeMethodDescriptionWebsocketEndpoint.SessionContext.metadata()
Returns the value of themetadata
record component.Constructors in io.fluxcapacitor.proxy with parameters of type MetadataModifierConstructorDescriptionprotected
SessionContext
(Metadata metadata, String clientId, String trackerId) Creates an instance of aSessionContext
record class. -
Uses of Metadata in io.fluxcapacitor.testserver.metrics
Methods in io.fluxcapacitor.testserver.metrics with parameters of type MetadataModifier and TypeMethodDescriptionvoid
DefaultMetricsLog.registerMetrics
(ClientEvent event, Metadata metadata) void
MetricsLog.registerMetrics
(ClientEvent event, Metadata metadata) void
NoOpMetricsLog.registerMetrics
(ClientEvent event, Metadata metadata)