public class KeyValueService extends AbstractService
The KeyValueService
is composed of and manages KeyValueEndpoint
s.
Service.EndpointFactory
endpointStates
Constructor and Description |
---|
KeyValueService(java.lang.String hostname,
java.lang.String bucket,
java.lang.String password,
int port,
CoreEnvironment env,
com.lmax.disruptor.RingBuffer<ResponseEvent> responseBuffer)
Creates a new
KeyValueService . |
Modifier and Type | Method and Description |
---|---|
ServiceType |
type()
Returns the type for the given
Service . |
connect, disconnect, logIdent, mapping, send
isState, state, states, transitionState
public KeyValueService(java.lang.String hostname, java.lang.String bucket, java.lang.String password, int port, CoreEnvironment env, com.lmax.disruptor.RingBuffer<ResponseEvent> responseBuffer)
Creates a new KeyValueService
.
hostname
- the hostname of the service.bucket
- the name of the bucket.password
- the password of the bucket.port
- the port of the service.env
- the shared environment.responseBuffer
- the shared response buffer.public ServiceType type()
Service
Returns the type for the given Service
.