Interface BinaryResponse
-
- All Superinterfaces:
CouchbaseMessage
,CouchbaseResponse
,ReferenceCounted
- All Known Implementing Classes:
AbstractKeyValueResponse
,AppendResponse
,CounterResponse
,FailoverObserveSeqnoResponse
,GetAllMutationTokensResponse
,GetBucketConfigResponse
,GetResponse
,InsertResponse
,KeyValueHandler.KeepAliveResponse
,MultiLookupResponse
,MultiMutationResponse
,NoFailoverObserveSeqnoResponse
,NoopResponse
,ObserveResponse
,PrependResponse
,RemoveResponse
,ReplaceResponse
,SimpleSubdocResponse
,StatResponse
,TouchResponse
,UnlockResponse
,UpsertResponse
public interface BinaryResponse extends CouchbaseResponse, ReferenceCounted
Marker interface which signals a binary response.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.long
serverDuration()
Returns the reported server duration, if set.BinaryResponse
serverDuration(long duration)
Sets the server duration.short
serverStatusCode()
-
Methods inherited from interface com.couchbase.client.core.message.CouchbaseMessage
creationTime
-
Methods inherited from interface com.couchbase.client.core.message.CouchbaseResponse
request, status, statusDetails, statusDetails
-
-
-
-
Method Detail
-
content
ByteBuf content()
Contains the content of the response, potentially null or empty.- Returns:
- the content.
-
bucket
String bucket()
The name of the bucket where this response is coming from.- Returns:
- the bucket name.
-
serverStatusCode
short serverStatusCode()
-
serverDuration
long serverDuration()
Returns the reported server duration, if set.
-
serverDuration
BinaryResponse serverDuration(long duration)
Sets the server duration.- Parameters:
duration
- the duration to set.
-
-