Class AbstractCouchbaseRequest

java.lang.Object
com.couchbase.client.core.message.AbstractCouchbaseRequest
All Implemented Interfaces:
CouchbaseMessage, CouchbaseRequest
Direct Known Subclasses:
AbstractKeyValueRequest, AddNodeRequest, AddServiceRequest, AnalyticsHandler.KeepAliveRequest, AnalyticsHandlerV2.KeepAliveRequest, AnalyticsQueryResultRequest, AnalyticsQueryStatusRequest, BucketConfigRequest, BucketsConfigRequest, BucketStreamingRequest, CloseBucketRequest, ClusterConfigRequest, DiagnosticsRequest, DisconnectRequest, FlushRequest, GenericAnalyticsRequest, GenericQueryRequest, GetClusterConfigRequest, GetConfigProviderRequest, GetDesignDocumentRequest, GetDesignDocumentsRequest, GetSearchIndexRequest, GetUsersRequest, InsertBucketRequest, OpenBucketRequest, PingRequest, PingRequest, PingRequest, PingRequest, QueryHandler.KeepAliveRequest, QueryHandlerV2.KeepAliveRequest, RemoveBucketRequest, RemoveDesignDocumentRequest, RemoveNodeRequest, RemoveSearchIndexRequest, RemoveServiceRequest, RemoveUserRequest, RestApiRequest, SearchHandler.KeepAliveRequest, SearchQueryRequest, SeedNodesRequest, SignalConfigReload, SignalFlush, UpdateBucketRequest, UpsertDesignDocumentRequest, UpsertSearchIndexRequest, UpsertUserRequest, ViewHandler.KeepAliveRequest, ViewQueryRequest

public abstract class AbstractCouchbaseRequest extends Object implements CouchbaseRequest
Default implementation for a CouchbaseRequest, should be extended by child messages.
Since:
1.0
Author:
Michael Nitschinger
  • Constructor Details

    • AbstractCouchbaseRequest

      protected AbstractCouchbaseRequest(String bucket, String password)
      Create a new AbstractCouchbaseRequest. Depending on the type of operation, bucket and password may be null, this needs to be enforced properly by the child implementations. This constructor will create a AsyncSubject, which implies that the response for this request only emits one message. If you need to expose a streaming response, use the other constructor and feed it a ReplaySubject or something similar.
      Parameters:
      bucket - the name of the bucket.
      password - user password.
    • AbstractCouchbaseRequest

      protected AbstractCouchbaseRequest(String bucket, String username, String password)
      Create a new AbstractCouchbaseRequest. Depending on the type of operation, bucket and password may be null, this needs to be enforced properly by the child implementations. This constructor will create a AsyncSubject, which implies that the response for this request only emits one message. If you need to expose a streaming response, use the other constructor and feed it a ReplaySubject or something similar.
      Parameters:
      bucket - the name of the bucket.
      username - user authorized to access the bucket.
      password - user password.
    • AbstractCouchbaseRequest

      protected AbstractCouchbaseRequest(String bucket, String username, String password, rx.subjects.Subject<CouchbaseResponse,CouchbaseResponse> observable)
      Create a new AbstractCouchbaseRequest. Depending on the type of operation, bucket and password may be null, this needs to be enforced properly by the child implementations.
      Parameters:
      bucket - the name of the bucket.
      username - user authorized to access the bucket.
      password - the password of the bucket.
  • Method Details