Class DefaultQueryGateway
java.lang.Object
io.fluxzero.sdk.publishing.DefaultQueryGateway
- All Implemented Interfaces:
Namespaced<QueryGateway>, QueryGateway, HasLocalHandlers
Default implementation of the
QueryGateway interface.
This class delegates all operations defined in the QueryGateway interface to an underlying
GenericGateway instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the resource scoped to the default namespace.forNamespace(String namespace) Creates and returns the resource scoped to the specified namespace.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HasLocalHandlers
hasLocalHandlers, registerHandler, registerHandler, setSelfHandlerFilterMethods inherited from interface QueryGateway
close, send, send, send, send, send, sendAndWait, sendAndWait, sendAndWait, sendAndWait, sendForMessage, sendForMessages
-
Constructor Details
-
DefaultQueryGateway
public DefaultQueryGateway()
-
-
Method Details
-
forDefaultNamespace
Description copied from interface:NamespacedReturns the resource scoped to the default namespace.- Specified by:
forDefaultNamespacein interfaceNamespaced<QueryGateway>- Returns:
- the resource which is associated with the default namespace
-
forNamespace
Description copied from interface:NamespacedCreates and returns the resource scoped to the specified namespace.- Specified by:
forNamespacein interfaceNamespaced<QueryGateway>- Parameters:
namespace- the namespace to which the returned resource is scoped- Returns:
- the resource associated with the specified namespace
-