public class ResponseEvent extends Object
A pre allocated event which carries a CouchbaseResponse
and associated information.
Constructor and Description |
---|
ResponseEvent() |
Modifier and Type | Method and Description |
---|---|
CouchbaseMessage |
getMessage()
Get the response from the payload.
|
Subject<CouchbaseResponse,CouchbaseResponse> |
getObservable() |
ResponseEvent |
setMessage(CouchbaseMessage message)
Set the new response as a payload for this event.
|
ResponseEvent |
setObservable(Subject<CouchbaseResponse,CouchbaseResponse> observable) |
String |
toString() |
public ResponseEvent setMessage(CouchbaseMessage message)
Set the new response as a payload for this event.
message
- the response to override.ResponseEvent
for method chaining.public CouchbaseMessage getMessage()
Get the response from the payload.
public Subject<CouchbaseResponse,CouchbaseResponse> getObservable()
public ResponseEvent setObservable(Subject<CouchbaseResponse,CouchbaseResponse> observable)
Copyright © 2014 Couchbase, Inc.