Interface Namespaced<T>

All Known Subinterfaces:
Client, CommandGateway, DocumentStore, ErrorGateway, EventGateway, EventStore, GenericGateway, MessageScheduler, MetricsGateway, QueryGateway, RequestHandler, ResultGateway, WebRequestGateway
All Known Implementing Classes:
AbstractClient, AbstractNamespaced, DefaultCommandGateway, DefaultDocumentStore, DefaultErrorGateway, DefaultEventGateway, DefaultEventStore, DefaultGenericGateway, DefaultMessageScheduler, DefaultMetricsGateway, DefaultQueryGateway, DefaultRequestHandler, DefaultResultGateway, DefaultWebRequestGateway, LocalClient, ProxyRequestHandler, WebResponseGateway, WebSocketClient

public interface Namespaced<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    Returns the resource scoped to the default namespace.
    forNamespace(String namespace)
    Creates and returns the resource scoped to the specified namespace.
  • Method Details

    • forDefaultNamespace

      default T forDefaultNamespace()
      Returns the resource scoped to the default namespace.
      Returns:
      the resource which is associated with the default namespace
    • forNamespace

      T forNamespace(String namespace)
      Creates and returns the resource scoped to the specified namespace.
      Parameters:
      namespace - the namespace to which the returned resource is scoped
      Returns:
      the resource associated with the specified namespace