Class DefaultMetricsGateway
java.lang.Object
io.fluxcapacitor.javaclient.publishing.DefaultMetricsGateway
- All Implemented Interfaces:
MetricsGateway
,HasLocalHandlers
Default implementation of the
MetricsGateway
interface.
This class delegates all functionality to an underlying GenericGateway
instance, enabling the use of metrics
gateway methods while leveraging the generic gateway's capabilities.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluxcapacitor.javaclient.tracking.handling.HasLocalHandlers
hasLocalHandlers, registerHandler, registerHandler, setSelfHandlerFilter
Methods inherited from interface io.fluxcapacitor.javaclient.publishing.MetricsGateway
publish, publish
-
Constructor Details
-
DefaultMetricsGateway
public DefaultMetricsGateway()
-
-
Method Details
-
publish
Description copied from interface:MetricsGateway
Publishes a metrics message with the specified metadata and delivery guarantee.This method may complete asynchronously.
- Specified by:
publish
in interfaceMetricsGateway
- Parameters:
payload
- the metrics payloadmetadata
- metadata to attach to the messageguarantee
- delivery guarantee (e.g.,Guarantee.SENT
orGuarantee.STORED
)- Returns:
- a
CompletableFuture
that completes when the message is published (or not, depending on the guarantee)
-