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 overriden by all responses that support cloning.
|
ResponseStatus |
status()
The typesafe status of the response.
|
String |
toString() |
protected AbstractCouchbaseResponse(ResponseStatus status, CouchbaseRequest request)
Sets the required properties for the response.
status - the status of the response.public ResponseStatus status()
CouchbaseResponseThe typesafe status of the response.
status in interface CouchbaseResponsepublic CouchbaseRequest request()
Stub method implementation which needs to be overriden by all responses that support cloning.
request in interface CouchbaseResponsepublic long creationTime()
CouchbaseMessageReturns the time in nanoseconds when the message was created.
creationTime in interface CouchbaseMessageCopyright © 2016 Couchbase, Inc.. All rights reserved.