public abstract class AbstractKeyValueResponse extends AbstractCouchbaseResponse implements BinaryResponse
Modifier | Constructor and Description |
---|---|
protected |
AbstractKeyValueResponse(ResponseStatus status,
short serverStatusCode,
String bucket,
ByteBuf content,
CouchbaseRequest request) |
Modifier and Type | Method and Description |
---|---|
String |
bucket()
The name of the bucket where this response is coming from.
|
ByteBuf |
content()
Contains the content of the response, potentially null or empty.
|
int |
refCnt() |
boolean |
release() |
boolean |
release(int decrement) |
BinaryResponse |
retain() |
BinaryResponse |
retain(int increment) |
long |
serverDuration()
Returns the reported server duration, if set.
|
BinaryResponse |
serverDuration(long duration)
Sets the server duration.
|
short |
serverStatusCode() |
String |
toString() |
creationTime, request, status, statusDetails, statusDetails
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
request, status, statusDetails, statusDetails
creationTime
protected AbstractKeyValueResponse(ResponseStatus status, short serverStatusCode, String bucket, ByteBuf content, CouchbaseRequest request)
public ByteBuf content()
BinaryResponse
Contains the content of the response, potentially null or empty.
content
in interface BinaryResponse
public String bucket()
BinaryResponse
The name of the bucket where this response is coming from.
bucket
in interface BinaryResponse
public short serverStatusCode()
serverStatusCode
in interface BinaryResponse
public long serverDuration()
BinaryResponse
Returns the reported server duration, if set.
serverDuration
in interface BinaryResponse
public BinaryResponse serverDuration(long duration)
BinaryResponse
Sets the server duration.
serverDuration
in interface BinaryResponse
duration
- the duration to set.public int refCnt()
refCnt
in interface ReferenceCounted
public BinaryResponse retain()
retain
in interface ReferenceCounted
public BinaryResponse retain(int increment)
retain
in interface ReferenceCounted
public boolean release()
release
in interface ReferenceCounted
public boolean release(int decrement)
release
in interface ReferenceCounted
public String toString()
toString
in class AbstractCouchbaseResponse
Copyright © 2018 Couchbase, Inc.. All rights reserved.