Modifier and Type | Method and Description |
---|---|
CouchbaseRequest |
RequestEvent.getRequest() |
Modifier and Type | Method and Description |
---|---|
protected void |
RequestHandler.checkFeaturesForRequest(CouchbaseRequest request,
BucketConfig config)
Checks, for a sub-set of
CouchbaseRequest , if the current environment has the necessary feature activated. |
protected Locator |
RequestHandler.locator(CouchbaseRequest request)
Helper method to detect the correct locator for the given request type.
|
<R extends CouchbaseResponse> |
CouchbaseCore.send(CouchbaseRequest request) |
<R extends CouchbaseResponse> |
ClusterFacade.send(CouchbaseRequest request)
Sends a
CouchbaseRequest into the cluster and eventually returns a CouchbaseResponse . |
RequestEvent |
RequestEvent.setRequest(CouchbaseRequest request)
Set the new request as a payload for this event.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractGenericHandler<RESPONSE,ENCODED,REQUEST extends CouchbaseRequest>
Generic handler which acts as the common base type for all implementing handlers.
|
Modifier and Type | Method and Description |
---|---|
protected CouchbaseRequest |
AbstractGenericHandler.createKeepAliveRequest()
Override to return a non-null request to be fired in the pipeline in case a keep alive is triggered.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractGenericHandler.onKeepAliveFired(ChannelHandlerContext ctx,
CouchbaseRequest keepAliveRequest)
Override to customize the behavior when a keep alive has been triggered and a keep alive request sent.
|
void |
Endpoint.send(CouchbaseRequest request)
Sends a
CouchbaseRequest into the endpoint and eventually returns a CouchbaseResponse . |
void |
AbstractEndpoint.send(CouchbaseRequest request) |
Modifier and Type | Class and Description |
---|---|
protected static class |
KeyValueHandler.KeepAliveRequest |
Modifier and Type | Method and Description |
---|---|
protected CouchbaseRequest |
KeyValueHandler.createKeepAliveRequest() |
Constructor and Description |
---|
KeepAliveResponse(ResponseStatus status,
short serverStatusCode,
CouchbaseRequest request) |
Modifier and Type | Class and Description |
---|---|
protected static class |
QueryHandler.KeepAliveRequest |
Modifier and Type | Method and Description |
---|---|
protected CouchbaseRequest |
QueryHandler.createKeepAliveRequest() |
Constructor and Description |
---|
KeepAliveResponse(ResponseStatus status,
CouchbaseRequest request) |
Modifier and Type | Class and Description |
---|---|
protected static class |
ViewHandler.KeepAliveRequest |
Modifier and Type | Method and Description |
---|---|
protected CouchbaseRequest |
ViewHandler.createKeepAliveRequest() |
Constructor and Description |
---|
KeepAliveResponse(ResponseStatus status,
CouchbaseRequest request) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractCouchbaseRequest
Default implementation for a
CouchbaseRequest , should be extended by child messages. |
Modifier and Type | Method and Description |
---|---|
CouchbaseRequest |
CouchbaseResponse.request()
Potentially has the associated request attached.
|
CouchbaseRequest |
AbstractCouchbaseResponse.request()
Stub method implementation which needs to be overriden by all responses that support cloning.
|
Constructor and Description |
---|
AbstractCouchbaseResponse(ResponseStatus status,
CouchbaseRequest request)
Sets the required properties for the response.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ClusterRequest |
Modifier and Type | Class and Description |
---|---|
class |
CloseBucketRequest |
class |
DisconnectRequest
Disconnects all open buckets.
|
class |
GetClusterConfigRequest |
class |
OpenBucketRequest |
class |
SeedNodesRequest
Set up the bootstrap nodes for a
ClusterFacade . |
Modifier and Type | Interface and Description |
---|---|
interface |
ConfigRequest
Common marker interface for all
ConfigRequest s. |
Modifier and Type | Class and Description |
---|---|
class |
BucketConfigRequest |
class |
BucketsConfigRequest |
class |
BucketStreamingRequest |
class |
ClusterConfigRequest |
class |
FlushRequest
Sends a flush command to the cluster.
|
class |
GetDesignDocumentsRequest |
class |
InsertBucketRequest |
class |
RemoveBucketRequest |
class |
UpdateBucketRequest |
Constructor and Description |
---|
BucketStreamingResponse(Observable<String> configs,
String host,
ResponseStatus status,
CouchbaseRequest request) |
GetDesignDocumentsResponse(String content,
ResponseStatus status,
CouchbaseRequest request) |
Modifier and Type | Interface and Description |
---|---|
interface |
DCPRequest
Common interface for all DCP requests.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractDCPRequest
Default implementation of
DCPRequest . |
class |
MutationMessage
A message representing event that creates or updates a document.
|
class |
OpenConnectionRequest
Initiate logical DCP channel.
|
class |
RemoveMessage
A message representing event that removes or expires a document.
|
class |
SnapshotMarkerMessage
Snapshot marker.
|
class |
StreamRequestRequest
Stream request.
|
Constructor and Description |
---|
AbstractDCPResponse(ResponseStatus status,
CouchbaseRequest request)
Creates
AbstractDCPResponse . |
OpenConnectionResponse(ResponseStatus status,
CouchbaseRequest request)
Sets the required properties for the response.
|
StreamRequestResponse(ResponseStatus status,
Observable<DCPRequest> stream,
List<FailoverLogEntry> failoverLog,
CouchbaseRequest request,
long rollbackToSequenceNumber)
Sets the required properties for the response.
|
Modifier and Type | Interface and Description |
---|---|
interface |
InternalRequest
Marker interface for all internal
CouchbaseRequest s that are potentially treated differently and with priority. |
Modifier and Type | Class and Description |
---|---|
class |
AddNodeRequest |
class |
AddServiceRequest |
class |
GetConfigProviderRequest
Request to fetch the configuration provider from the core.
|
class |
RemoveNodeRequest |
class |
RemoveServiceRequest |
class |
SignalConfigReload |
class |
SignalFlush |
Modifier and Type | Interface and Description |
---|---|
interface |
BinaryRequest
Common marker interface for all
BinaryRequest s. |
interface |
BinaryStoreRequest |
Modifier and Type | Class and Description |
---|---|
class |
AbstractKeyValueRequest
Default implementation of a
BinaryRequest . |
class |
AppendRequest |
class |
CounterRequest
Request to handle increment/decrement of a counter.
|
class |
GetBucketConfigRequest
Request which fetches a bucket configuration through carrier publication.
|
class |
GetRequest
Fetch a document from the cluster and return it if found.
|
class |
InsertRequest
Insert a document.
|
class |
ObserveRequest |
class |
ObserveSeqnoRequest
Observe through sequence numbers instead of cas.
|
class |
PrependRequest |
class |
RemoveRequest |
class |
ReplaceRequest |
class |
ReplicaGetRequest
Fetch a document from one or more and/or active nodes replicas.
|
class |
StatRequest |
class |
TouchRequest |
class |
UnlockRequest |
class |
UpsertRequest
Insert or update a document.
|
Constructor and Description |
---|
AbstractKeyValueResponse(ResponseStatus status,
short serverStatusCode,
String bucket,
ByteBuf content,
CouchbaseRequest request) |
AppendResponse(ResponseStatus status,
short serverStatusCode,
long cas,
String bucket,
ByteBuf content,
MutationToken mutationToken,
CouchbaseRequest request) |
CounterResponse(ResponseStatus status,
short serverStatusCode,
String bucket,
long value,
long cas,
MutationToken mutationToken,
CouchbaseRequest request) |
FailoverObserveSeqnoResponse(boolean master,
short vbucketID,
long vbucketUUID,
long lastPersistedSeqNo,
long currentSeqNo,
long oldVbucketUUID,
long lastSeqNoReceived,
ResponseStatus status,
short serverStatusCode,
String bucket,
CouchbaseRequest request) |
GetResponse(ResponseStatus status,
short serverStatusCode,
long cas,
int flags,
String bucket,
ByteBuf content,
CouchbaseRequest request) |
InsertResponse(ResponseStatus status,
short serverStatusCode,
long cas,
String bucket,
ByteBuf content,
MutationToken mutationToken,
CouchbaseRequest request) |
NoFailoverObserveSeqnoResponse(boolean master,
short vbucketID,
long vbucketUUID,
long lastPersistedSeqNo,
long currentSeqNo,
ResponseStatus status,
short serverStatusCode,
String bucket,
CouchbaseRequest request) |
ObserveResponse(ResponseStatus status,
short serverStatusCode,
byte obs,
boolean master,
long cas,
String bucket,
CouchbaseRequest request) |
PrependResponse(ResponseStatus status,
short serverStatusCode,
long cas,
String bucket,
ByteBuf content,
MutationToken mutationToken,
CouchbaseRequest request) |
RemoveResponse(ResponseStatus status,
short serverStatusCode,
long cas,
String bucket,
ByteBuf content,
MutationToken mutationToken,
CouchbaseRequest request) |
ReplaceResponse(ResponseStatus status,
short serverStatusCode,
long cas,
String bucket,
ByteBuf content,
MutationToken mutationToken,
CouchbaseRequest request) |
StatResponse(ResponseStatus status,
short serverStatusCode,
String hostname,
String key,
String value,
String bucket,
CouchbaseRequest request) |
TouchResponse(ResponseStatus status,
short serverStatusCode,
String bucket,
ByteBuf content,
CouchbaseRequest request) |
UnlockResponse(ResponseStatus status,
short serverStatusCode,
String bucket,
ByteBuf content,
CouchbaseRequest request) |
UpsertResponse(ResponseStatus status,
short serverStatusCode,
long cas,
String bucket,
ByteBuf content,
MutationToken mutationToken,
CouchbaseRequest request) |
Modifier and Type | Interface and Description |
---|---|
interface |
QueryRequest |
Modifier and Type | Class and Description |
---|---|
class |
GenericQueryRequest
For the lack of a better name, a query request against a query server.
|
Constructor and Description |
---|
GenericQueryResponse(Observable<ByteBuf> errors,
Observable<ByteBuf> rows,
Observable<ByteBuf> signature,
Observable<String> queryStatus,
Observable<ByteBuf> info,
CouchbaseRequest request,
ResponseStatus status,
String requestId,
String clientRequestId) |
Modifier and Type | Interface and Description |
---|---|
interface |
ViewRequest |
Modifier and Type | Class and Description |
---|---|
class |
GetDesignDocumentRequest |
class |
RemoveDesignDocumentRequest |
class |
UpsertDesignDocumentRequest |
class |
ViewQueryRequest |
Constructor and Description |
---|
GetDesignDocumentResponse(String name,
boolean development,
ByteBuf content,
ResponseStatus status,
CouchbaseRequest request) |
RemoveDesignDocumentResponse(ResponseStatus status,
ByteBuf content,
CouchbaseRequest request) |
UpsertDesignDocumentResponse(ResponseStatus status,
ByteBuf content,
CouchbaseRequest request) |
ViewQueryResponse(Observable<ByteBuf> rows,
Observable<ByteBuf> info,
Observable<String> error,
int responseCode,
String responsePhrase,
ResponseStatus status,
CouchbaseRequest request) |
Modifier and Type | Method and Description |
---|---|
Service |
ServiceRegistry.locate(CouchbaseRequest request) |
Service |
DefaultServiceRegistry.locate(CouchbaseRequest request) |
void |
Node.send(CouchbaseRequest request)
Sends a
CouchbaseRequest into the node and eventually returns a CouchbaseResponse . |
void |
CouchbaseNode.send(CouchbaseRequest request) |
Modifier and Type | Method and Description |
---|---|
Node[] |
ViewLocator.locate(CouchbaseRequest request,
Set<Node> nodes,
ClusterConfig config) |
Node[] |
QueryLocator.locate(CouchbaseRequest request,
Set<Node> nodes,
ClusterConfig config) |
Node[] |
Locator.locate(CouchbaseRequest request,
Set<Node> nodes,
ClusterConfig config) |
Node[] |
KeyValueLocator.locate(CouchbaseRequest request,
Set<Node> nodes,
ClusterConfig cluster) |
Node[] |
DCPLocator.locate(CouchbaseRequest request,
Set<Node> nodes,
ClusterConfig cluster) |
Node[] |
ConfigLocator.locate(CouchbaseRequest request,
Set<Node> nodes,
ClusterConfig config) |
Modifier and Type | Method and Description |
---|---|
static void |
RetryHelper.retryOrCancel(CoreEnvironment environment,
CouchbaseRequest request,
com.lmax.disruptor.RingBuffer<ResponseEvent> responseBuffer)
Either retry or cancel a request, based on the strategy used.
|
boolean |
RetryStrategy.shouldRetry(CouchbaseRequest request,
CoreEnvironment environment)
Decides whether the given
CouchbaseRequest should be retried or cancelled. |
boolean |
FailFastRetryStrategy.shouldRetry(CouchbaseRequest request,
CoreEnvironment env) |
boolean |
BestEffortRetryStrategy.shouldRetry(CouchbaseRequest request,
CoreEnvironment env) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractPoolingService.dispatch(CouchbaseRequest request) |
protected void |
AbstractOnDemandService.dispatch(CouchbaseRequest request) |
protected void |
AbstractLazyService.dispatch(CouchbaseRequest request) |
protected abstract void |
AbstractDynamicService.dispatch(CouchbaseRequest request) |
void |
Service.send(CouchbaseRequest request)
Sends a
CouchbaseRequest into the service and eventually returns a CouchbaseResponse . |
void |
AbstractDynamicService.send(CouchbaseRequest request) |
Modifier and Type | Method and Description |
---|---|
Endpoint |
SelectionStrategy.select(CouchbaseRequest request,
Endpoint[] endpoints)
Selects an
Endpoint for the given CouchbaseRequest . |
Endpoint |
RandomSelectionStrategy.select(CouchbaseRequest request,
Endpoint[] endpoints) |
Endpoint |
PartitionSelectionStrategy.select(CouchbaseRequest request,
Endpoint[] endpoints) |
Copyright © 2015 Couchbase, Inc.. All rights reserved.