Uses of Class
io.fluxzero.common.api.Metadata
Packages that use Metadata
Package
Description
-
Uses of Metadata in io.fluxzero.common.api
Methods in io.fluxzero.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 MetadataMetadata.empty()Creates an empty instance of the Metadata class with no entries.HasMetadata.getMetadata()Returns theMetadataassociated with this object.static MetadataCreates a newMetadatainstance with the provided key-value pairs.static MetadataCreates a newMetadatainstance with a single key-value pair.static MetadataCreates a new instance ofMetadatapopulated with the given map.Creates a new instance ofMetadataby combining the current metadata with the given metadata.Creates a newMetadatainstance by adding the specified key-value pairs.Returns a newMetadatainstance 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 newMetadatainstance with an explicit null value associated with the given key.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.fluxzero.common.api with parameters of type MetadataModifier and TypeMethodDescriptionbooleanChecks whether the current metadata contains all entries of the specified metadata.Creates a new instance ofMetadataby combining the current metadata with the given metadata.Constructors in io.fluxzero.common.api with parameters of type MetadataModifierConstructorDescriptionSerializedMessage(Data<byte[]> data, Metadata metadata, String messageId, Long timestamp) -
Uses of Metadata in io.fluxzero.common.search
Methods in io.fluxzero.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.fluxzero.proxy
Methods in io.fluxzero.proxy that return MetadataModifier and TypeMethodDescriptionWebsocketEndpoint.SessionContext.metadata()Returns the value of themetadatarecord component.Constructors in io.fluxzero.proxy with parameters of type MetadataModifierConstructorDescriptionprotectedSessionContext(Metadata metadata, String clientId, String trackerId) Creates an instance of aSessionContextrecord class. -
Uses of Metadata in io.fluxzero.sdk
Methods in io.fluxzero.sdk with parameters of type MetadataModifier and TypeMethodDescriptionstatic voidFluxzero.publishEvent(Object payload, Metadata metadata) Publishes an event with given payload and metadata.static voidFluxzero.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> RFluxzero.queryAndWait(Request<R> payload, Metadata metadata) Sends a query with given payload and metadata and returns the query's result.static <R> RFluxzero.queryAndWait(Object payload, Metadata metadata) Sends a query with given payload and metadata and returns the query's result.static voidFluxzero.sendAndForgetCommand(Object payload, Metadata metadata) Sends a command with given payload and metadata and don't wait for a result.static voidFluxzero.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> Fluxzero.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> Fluxzero.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> RFluxzero.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> RFluxzero.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.fluxzero.sdk.common
Methods in io.fluxzero.sdk.common with parameters of type MetadataModifier and TypeMethodDescriptionMessage.addMetadata(Metadata metadata) Returns a new message with the combined metadata.Constructors in io.fluxzero.sdk.common with parameters of type Metadata -
Uses of Metadata in io.fluxzero.sdk.common.serialization
Methods in io.fluxzero.sdk.common.serialization that return MetadataMethods in io.fluxzero.sdk.common.serialization with parameters of type Metadata -
Uses of Metadata in io.fluxzero.sdk.common.serialization.jackson
Methods in io.fluxzero.sdk.common.serialization.jackson with parameters of type Metadata -
Uses of Metadata in io.fluxzero.sdk.common.websocket
Methods in io.fluxzero.sdk.common.websocket that return MetadataMethods in io.fluxzero.sdk.common.websocket with parameters of type MetadataModifier and TypeMethodDescriptionprotected voidAbstractWebsocketClient.tryPublishMetrics(JsonType message, Metadata metadata) -
Uses of Metadata in io.fluxzero.sdk.modeling
Methods in io.fluxzero.sdk.modeling that return MetadataMethods in io.fluxzero.sdk.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.fluxzero.sdk.persisting.search
Methods in io.fluxzero.sdk.persisting.search that return MetadataMethods in io.fluxzero.sdk.persisting.search with parameters of type MetadataModifier and TypeMethodDescriptiondefault IndexOperationIndexOperation.addMetadata(@NonNull Metadata metadata) Adds metadata to the index operation, merging with any previously set metadata.DefaultDocumentStore.index(@NonNull Object object, @NonNull Object id, @NonNull 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, usingGuarantee.STORED.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.fluxzero.sdk.publishing
Methods in io.fluxzero.sdk.publishing with parameters of type MetadataModifier and TypeMethodDescriptionprotected SerializedMessageDefaultResultGateway.interceptDispatch(Object payload, Metadata metadata) default voidPublishes an event with the specified payload and metadata.default voidPublishes a metrics payload with the specified metadata and aGuarantee.NONEdelivery guarantee.Publishes a metrics message with the specified metadata and delivery guarantee.default voidReports 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 aRequestwith 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 typedRequestquery 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.voidCommandGateway.sendAndForget(Object payload, Metadata metadata) Sends a command with metadata without waiting for a result.voidCommandGateway.sendAndForget(Object payload, Metadata metadata, Guarantee guarantee) Sends a command with metadata and delivery guarantee, without waiting for a result.default voidGenericGateway.sendAndForget(Object payload, Metadata metadata) Sends a message with custom payload and metadata asynchronously.default voidGenericGateway.sendAndForget(Object payload, Metadata metadata, Guarantee guarantee) Sends a message with payload, metadata, and delivery guarantee asynchronously.<R> RCommandGateway.sendAndWait(Request<R> payload, Metadata metadata) Sends a typed request command with metadata and waits for the result.<R> RCommandGateway.sendAndWait(Object payload, Metadata metadata) Sends a command with metadata and waits for the result.default <R> RGenericGateway.sendAndWait(Request<R> payload, Metadata metadata) Sends aRequestwith metadata and blocks for a response.default <R> RGenericGateway.sendAndWait(Object payload, Metadata metadata) Sends a message with metadata and blocks for a response.<R> RQueryGateway.sendAndWait(Request<R> payload, Metadata metadata) Sends a typedRequestquery with metadata and waits for the result.<R> RQueryGateway.sendAndWait(Object payload, Metadata metadata) Sends the given query and metadata, then waits for the result. -
Uses of Metadata in io.fluxzero.sdk.publishing.client
Methods in io.fluxzero.sdk.publishing.client that return Metadata -
Uses of Metadata in io.fluxzero.sdk.scheduling
Methods in io.fluxzero.sdk.scheduling with parameters of type MetadataModifier and TypeMethodDescriptionSchedule.addMetadata(Metadata metadata) Returns a new schedule with additional metadata.default voidMessageScheduler.schedule(@NonNull Object schedulePayload, Metadata metadata, Object scheduleId, Duration delay) Schedule a message with payload and metadata using a delay, using theGuarantee.SENTguarantee.default voidMessageScheduler.schedule(@NonNull Object schedulePayload, Metadata metadata, Object scheduleId, Instant deadline) Schedule a message with payload and metadata, using theGuarantee.SENTguarantee.default voidMessageScheduler.scheduleCommand(@NonNull Object schedulePayload, Metadata metadata, Object scheduleId, Duration delay) Schedule a command with metadata and delay, using theGuarantee.SENTguarantee.default voidMessageScheduler.scheduleCommand(@NonNull Object schedulePayload, Metadata metadata, Object scheduleId, Instant deadline) Schedule a command message with attached metadata, using theGuarantee.SENTguarantee.Schedule.withMetadata(Metadata metadata) Returns a new instance with the given metadata.Constructors in io.fluxzero.sdk.scheduling with parameters of type Metadata -
Uses of Metadata in io.fluxzero.sdk.tracking.client
Methods in io.fluxzero.sdk.tracking.client that return Metadata -
Uses of Metadata in io.fluxzero.sdk.tracking.handling
Methods in io.fluxzero.sdk.tracking.handling with parameters of type Metadata -
Uses of Metadata in io.fluxzero.sdk.tracking.handling.authentication
Methods in io.fluxzero.sdk.tracking.handling.authentication that return MetadataModifier and TypeMethodDescriptionAbstractUserProvider.addToMetadata(Metadata metadata, User user, boolean ifAbsent) Adds aUserto the metadata using the configured key.DelegatingUserProvider.addToMetadata(Metadata metadata, User user, boolean ifAbsent) NoOpUserProvider.addToMetadata(Metadata metadata, User user, boolean ifAbsent) default MetadataUserProvider.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.fluxzero.sdk.tracking.handling.authentication with parameters of type MetadataModifier and TypeMethodDescriptionAbstractUserProvider.addToMetadata(Metadata metadata, User user, boolean ifAbsent) Adds aUserto the metadata using the configured key.DelegatingUserProvider.addToMetadata(Metadata metadata, User user, boolean ifAbsent) NoOpUserProvider.addToMetadata(Metadata metadata, User user, boolean ifAbsent) default MetadataUserProvider.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.booleanAbstractUserProvider.containsUser(Metadata metadata) Returnstrueif the metadata contains a user entry under the configured key.booleanDelegatingUserProvider.containsUser(Metadata metadata) booleanNoOpUserProvider.containsUser(Metadata metadata) booleanUserProvider.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.fluxzero.sdk.web
Methods in io.fluxzero.sdk.web that return MetadataModifier and TypeMethodDescriptionstatic MetadataWebResponse.asMetadata(int statusCode, Map<String, List<String>> headers) Constructs a Metadata object containing the provided status code and headers.Methods in io.fluxzero.sdk.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 StringExtracts the HTTP or WebSocket method (e.g., "GET", "POST", "WS_OPEN") from the provided Metadata object.static StringWebRequest.getSocketSessionId(Metadata metadata) Retrieves the WebSocket session ID from the provided metadata, ornullif it is missing.static IntegerWebResponse.getStatusCode(Metadata metadata) Retrieves the status code from the provided metadata.static StringExtracts 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 StringWebRequest.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.fluxzero.sdk.web with parameters of type Metadata -
Uses of Metadata in io.fluxzero.testserver.metrics
Methods in io.fluxzero.testserver.metrics with parameters of type MetadataModifier and TypeMethodDescriptionvoidDefaultMetricsLog.registerMetrics(JsonType event, Metadata metadata) voidMetricsLog.registerMetrics(JsonType event, Metadata metadata) voidNoOpMetricsLog.registerMetrics(JsonType event, Metadata metadata) -
Uses of Metadata in io.fluxzero.testserver.websocket
Methods in io.fluxzero.testserver.websocket that return MetadataModifier and TypeMethodDescriptionprotected MetadataWebsocketEndpoint.sessionMetadata(jakarta.websocket.Session session)