public class DefaultServiceRegistry extends Object implements ServiceRegistry
The default implementation of a ServiceRegistry.
| Constructor and Description |
|---|
DefaultServiceRegistry()
Create a new
DefaultServiceRegistry. |
| Modifier and Type | Method and Description |
|---|---|
Service |
addService(Service service,
String bucket) |
Service |
locate(CouchbaseRequest request) |
Service |
removeService(Service service,
String bucket) |
Service |
serviceBy(ServiceType type,
String bucket) |
Service[] |
services()
Returns all currently stored services, across buckets and globally.
|
String |
toString() |
public DefaultServiceRegistry()
Create a new DefaultServiceRegistry.
public Service addService(Service service, String bucket)
addService in interface ServiceRegistrypublic Service removeService(Service service, String bucket)
removeService in interface ServiceRegistrypublic Service locate(CouchbaseRequest request)
locate in interface ServiceRegistrypublic Service[] services()
ServiceRegistryReturns all currently stored services, across buckets and globally.
services in interface ServiceRegistrypublic Service serviceBy(ServiceType type, String bucket)
serviceBy in interface ServiceRegistryCopyright © 2016 Couchbase, Inc.. All rights reserved.