@InterfaceStability.Experimental @InterfaceAudience.Private @Deprecated public abstract class AbstractDCPRequest extends AbstractCouchbaseRequest implements DCPRequest
Default implementation of DCPRequest
.
Modifier and Type | Field and Description |
---|---|
protected static short |
DEFAULT_PARTITION
Deprecated.
|
Constructor and Description |
---|
AbstractDCPRequest(String bucket,
String password)
Deprecated.
Creates a new
AbstractDCPRequest . |
AbstractDCPRequest(String bucket,
String username,
String password)
Deprecated.
Creates a new
AbstractDCPRequest . |
AbstractDCPRequest(String bucket,
String username,
String password,
rx.subjects.Subject<CouchbaseResponse,CouchbaseResponse> observable)
Deprecated.
|
AbstractDCPRequest(String bucket,
String password,
rx.subjects.Subject<CouchbaseResponse,CouchbaseResponse> observable)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
short |
partition()
Deprecated.
The partition (vBucket) to use for this request.
|
DCPRequest |
partition(short partition)
Deprecated.
Set the partition ID.
|
String |
toString()
Deprecated.
|
bucket, creationTime, incrementRetryCount, observable, password, retryCount, username
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bucket, incrementRetryCount, observable, password, retryCount, username
creationTime
public AbstractDCPRequest(String bucket, String password)
Creates a new AbstractDCPRequest
.
bucket
- the bucket of the document.password
- the optional password of the bucket.public AbstractDCPRequest(String bucket, String username, String password)
Creates a new AbstractDCPRequest
.
bucket
- the bucket of the document.username
- the user authorized for bucket access.password
- the optional password of the user.public AbstractDCPRequest(String bucket, String password, rx.subjects.Subject<CouchbaseResponse,CouchbaseResponse> observable)
public AbstractDCPRequest(String bucket, String username, String password, rx.subjects.Subject<CouchbaseResponse,CouchbaseResponse> observable)
public short partition()
DCPRequest
The partition (vBucket) to use for this request.
partition
in interface DCPRequest
public DCPRequest partition(short partition)
DCPRequest
Set the partition ID.
partition
in interface DCPRequest
partition
- the id of the partition.DCPRequest
for proper chaining.public String toString()
toString
in class AbstractCouchbaseRequest
Copyright © 2017 Couchbase, Inc.. All rights reserved.