java.lang.Object
io.fluxzero.javaclient.publishing.DefaultErrorGateway
- All Implemented Interfaces:
ErrorGateway,HasLocalHandlers
Default implementation of the
ErrorGateway interface.
This class delegates all functionality to an underlying GenericGateway instance, enabling the use of error
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, waitMethods inherited from interface io.fluxzero.javaclient.publishing.ErrorGateway
report, reportMethods inherited from interface io.fluxzero.javaclient.tracking.handling.HasLocalHandlers
hasLocalHandlers, registerHandler, registerHandler, setSelfHandlerFilter
-
Constructor Details
-
DefaultErrorGateway
public DefaultErrorGateway()
-
-
Method Details
-
report
public CompletableFuture<Void> report(Object payload, io.fluxzero.common.api.Metadata metadata, io.fluxzero.common.Guarantee guarantee) Description copied from interface:ErrorGatewayReports an error with the given payload, metadata, and delivery guarantee.Returns a future that completes once the error message is sent or stored based on the provided guarantee.
- Specified by:
reportin interfaceErrorGateway- Parameters:
payload- the error payloadmetadata- metadata describing the context of the errorguarantee- whether to ensure message is sent (Guarantee.SENT) or stored (Guarantee.STORED)- Returns:
- a future that completes once the message has been handled appropriately
-