Class DefaultGenericGateway
java.lang.Object
io.fluxzero.sdk.publishing.DefaultGenericGateway
- All Implemented Interfaces:
GenericGateway, HasLocalHandlers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this gateway and releases any underlying resources.protected CompletableFuture<Message> sendAndForget(io.fluxzero.common.Guarantee guarantee, Message... messages) Sends multipleMessageobjects with a guarantee.sendForMessages(Message... messages) Sends multiple messages and returns futures for their fullMessageresponses.setRetentionTime(Duration duration, io.fluxzero.common.Guarantee guarantee) Set a new retention duration for the underlying gateway's message log.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GenericGateway
send, send, send, send, send, send, sendAndForget, sendAndForget, sendAndForget, sendAndForget, sendAndForget, sendAndForget, sendAndWait, sendAndWait, sendAndWait, sendAndWait, sendAndWait, sendForMessage, setRetentionTimeMethods inherited from interface HasLocalHandlers
hasLocalHandlers, registerHandler, registerHandler, setSelfHandlerFilter
-
Constructor Details
-
DefaultGenericGateway
public DefaultGenericGateway()
-
-
Method Details
-
sendAndForget
public CompletableFuture<Void> sendAndForget(io.fluxzero.common.Guarantee guarantee, Message... messages) Description copied from interface:GenericGatewaySends multipleMessageobjects with a guarantee.- Specified by:
sendAndForgetin interfaceGenericGateway
-
sendForMessages
Description copied from interface:GenericGatewaySends multiple messages and returns futures for their fullMessageresponses.- Specified by:
sendForMessagesin interfaceGenericGateway
-
setRetentionTime
public CompletableFuture<Void> setRetentionTime(Duration duration, io.fluxzero.common.Guarantee guarantee) Description copied from interface:GenericGatewaySet a new retention duration for the underlying gateway's message log.The retention setting determines how long messages in this log are retained by the system, after which they may be evicted or deleted depending on the platform policy.
- Specified by:
setRetentionTimein interfaceGenericGateway- Parameters:
duration- the new retention durationguarantee- the delivery guarantee to apply to the update operation- Returns:
- a
CompletableFuturethat completes once the retention setting is updated
-
emptyReturnMessage
-
close
public void close()Description copied from interface:GenericGatewayCloses this gateway and releases any underlying resources.- Specified by:
closein interfaceGenericGateway
-