public abstract class AbstractCouchbaseResponse extends Object implements CouchbaseResponse
The default representation of a CouchbaseResponse
.
Modifier | Constructor and Description |
---|---|
protected |
AbstractCouchbaseResponse(ResponseStatus status,
CouchbaseRequest request)
Sets the required properties for the response.
|
Modifier and Type | Method and Description |
---|---|
long |
creationTime()
Returns the time in nanoseconds when the message was created.
|
CouchbaseRequest |
request()
Stub method implementation which needs to be overridden by all responses that support cloning.
|
ResponseStatus |
status()
The typesafe status of the response.
|
ResponseStatusDetails |
statusDetails()
If set, provides more detailed information into the response status than the always available
ResponseStatus enum. |
void |
statusDetails(ResponseStatusDetails statusDetails)
Set the status details if not set previously.
|
String |
toString() |
protected AbstractCouchbaseResponse(ResponseStatus status, CouchbaseRequest request)
Sets the required properties for the response.
status
- the status of the response.public ResponseStatus status()
CouchbaseResponse
The typesafe status of the response.
status
in interface CouchbaseResponse
public ResponseStatusDetails statusDetails()
CouchbaseResponse
If set, provides more detailed information into the response status than the always available ResponseStatus
enum.
statusDetails
in interface CouchbaseResponse
ResponseStatusDetails
.public void statusDetails(ResponseStatusDetails statusDetails)
CouchbaseResponse
Set the status details if not set previously.
statusDetails
in interface CouchbaseResponse
statusDetails
- the details to be set.public CouchbaseRequest request()
Stub method implementation which needs to be overridden by all responses that support cloning.
request
in interface CouchbaseResponse
public long creationTime()
CouchbaseMessage
Returns the time in nanoseconds when the message was created.
creationTime
in interface CouchbaseMessage
Copyright © 2018 Couchbase, Inc.. All rights reserved.