Class DefaultErrorGateway
java.lang.Object
io.fluxcapacitor.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, wait
Methods inherited from interface io.fluxcapacitor.javaclient.publishing.ErrorGateway
report, report
Methods inherited from interface io.fluxcapacitor.javaclient.tracking.handling.HasLocalHandlers
hasLocalHandlers, registerHandler, registerHandler, setSelfHandlerFilter
-
Constructor Details
-
DefaultErrorGateway
public DefaultErrorGateway()
-
-
Method Details
-
report
Description copied from interface:ErrorGateway
Reports 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:
report
in 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
-