public class QueryService extends PooledService
The QueryService
is composed of and manages QueryEndpoint
s.
Service.EndpointFactory
Constructor and Description |
---|
QueryService(String hostname,
String bucket,
String password,
int port,
CoreEnvironment env,
com.lmax.disruptor.RingBuffer<ResponseEvent> responseBuffer)
Deprecated.
|
QueryService(String hostname,
String bucket,
String username,
String password,
int port,
CoreEnvironment env,
com.lmax.disruptor.RingBuffer<ResponseEvent> responseBuffer)
Creates a new
QueryService . |
Modifier and Type | Method and Description |
---|---|
ServiceType |
type()
Returns the type for the given
Service . |
connect, disconnect, endpoints, healthCheck, mapping, send
hasSubscribers, isState, state, states, transitionState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasSubscribers, isState, state, states
@Deprecated public QueryService(String hostname, String bucket, String password, int port, CoreEnvironment env, com.lmax.disruptor.RingBuffer<ResponseEvent> responseBuffer)
Creates a new QueryService
.
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 QueryService(String hostname, String bucket, String username, String password, int port, CoreEnvironment env, com.lmax.disruptor.RingBuffer<ResponseEvent> responseBuffer)
Creates a new QueryService
.
hostname
- the hostname of the service.bucket
- the name of the bucket.username
- the user authorized for bucket access.password
- the password of the user.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
.
Copyright © 2017 Couchbase, Inc.. All rights reserved.