public abstract class AbstractCouchbaseResponse extends Object implements CouchbaseResponse
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)
status
- the status of the response.public ResponseStatus status()
CouchbaseResponse
status
in interface CouchbaseResponse
public ResponseStatusDetails statusDetails()
CouchbaseResponse
ResponseStatus
enum.statusDetails
in interface CouchbaseResponse
ResponseStatusDetails
.public void statusDetails(ResponseStatusDetails statusDetails)
CouchbaseResponse
statusDetails
in interface CouchbaseResponse
statusDetails
- the details to be set.public CouchbaseRequest request()
request
in interface CouchbaseResponse
public long creationTime()
CouchbaseMessage
creationTime
in interface CouchbaseMessage
Copyright © 2018 Couchbase, Inc.. All rights reserved.