@InterfaceStability.Experimental @InterfaceAudience.Private public abstract class AbstractDCPResponse extends AbstractCouchbaseResponse implements DCPResponse
Default implementation of DCPResponse
.
Constructor and Description |
---|
AbstractDCPResponse(ResponseStatus status,
CouchbaseRequest request)
Creates
AbstractDCPResponse . |
Modifier and Type | Method and Description |
---|---|
short |
partition()
The partition (vBucket) to use for this request.
|
DCPResponse |
partition(short partition)
Set the partition ID.
|
creationTime, request, status, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
request, status
creationTime
public AbstractDCPResponse(ResponseStatus status, CouchbaseRequest request)
Creates AbstractDCPResponse
.
status
- the status of the response.public short partition()
DCPResponse
The partition (vBucket) to use for this request.
partition
in interface DCPResponse
public DCPResponse partition(short partition)
DCPResponse
Set the partition ID.
partition
in interface DCPResponse
partition
- the id of the partition.DCPRequest
for proper chaining.Copyright © 2017 Couchbase, Inc.. All rights reserved.