Package com.couchbase.client.core.node
Class DefaultServiceRegistry
java.lang.Object
com.couchbase.client.core.node.DefaultServiceRegistry
- All Implemented Interfaces:
ServiceRegistry
The default implementation of a
ServiceRegistry
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddService
(Service service, String bucket) locate
(CouchbaseRequest request) removeService
(Service service, String bucket) serviceBy
(ServiceType type, String bucket) Service[]
services()
Returns all currently stored services, across buckets and globally.toString()
-
Constructor Details
-
DefaultServiceRegistry
public DefaultServiceRegistry()Create a newDefaultServiceRegistry
.
-
-
Method Details
-
addService
- Specified by:
addService
in interfaceServiceRegistry
-
removeService
- Specified by:
removeService
in interfaceServiceRegistry
-
locate
- Specified by:
locate
in interfaceServiceRegistry
-
services
Description copied from interface:ServiceRegistry
Returns all currently stored services, across buckets and globally.- Specified by:
services
in interfaceServiceRegistry
- Returns:
- all stored services.
-
serviceBy
- Specified by:
serviceBy
in interfaceServiceRegistry
-
toString
-