Class DefaultCommandGateway
java.lang.Object
io.fluxzero.sdk.common.AbstractNamespaced<CommandGateway>
io.fluxzero.sdk.publishing.DefaultCommandGateway
- All Implemented Interfaces:
Namespaced<CommandGateway>, CommandGateway, HasLocalHandlers
public class DefaultCommandGateway
extends AbstractNamespaced<CommandGateway>
implements CommandGateway
Default implementation of the
CommandGateway interface.
This class delegates all functionality to an underlying GenericGateway instance, enabling the use of command
gateway methods while leveraging the generic gateway's capabilities.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CommandGatewaycreateForNamespace(String namespace) forNamespace(String namespace) Returns the resource scoped to the specified namespace.Methods inherited from class AbstractNamespaced
closeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CommandGateway
close, send, send, send, send, send, sendAndForget, sendAndForget, sendAndForget, sendAndForget, sendAndForget, sendAndWait, sendAndWait, sendAndWait, sendAndWait, sendForMessage, sendForMessagesMethods inherited from interface HasLocalHandlers
hasLocalHandlers, registerHandler, registerHandler, setSelfHandlerFilterMethods inherited from interface Namespaced
forApplicationNamespace, forDefaultNamespace
-
Constructor Details
-
DefaultCommandGateway
public DefaultCommandGateway()
-
-
Method Details
-
createForNamespace
- Specified by:
createForNamespacein classAbstractNamespaced<CommandGateway>
-
forNamespace
Description copied from interface:NamespacedReturns the resource scoped to the specified namespace. Passingnullselects the namespace configured for this application.- Specified by:
forNamespacein interfaceNamespaced<CommandGateway>- Overrides:
forNamespacein classAbstractNamespaced<CommandGateway>- Parameters:
namespace- the namespace to which the returned resource is scoped, ornullfor the application namespace- Returns:
- the resource associated with the specified namespace
-