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 ServiceRegistry
public Service removeService(Service service, String bucket)
removeService
in interface ServiceRegistry
public Service locate(CouchbaseRequest request)
locate
in interface ServiceRegistry
public Service[] services()
ServiceRegistry
Returns all currently stored services, across buckets and globally.
services
in interface ServiceRegistry
public Service serviceBy(ServiceType type, String bucket)
serviceBy
in interface ServiceRegistry
Copyright © 2017 Couchbase, Inc.. All rights reserved.