Package com.couchbase.client.core
Class ResponseEvent
java.lang.Object
com.couchbase.client.core.ResponseEvent
public class ResponseEvent extends Object
A pre allocated event which carries a
CouchbaseResponse
and associated information.- Since:
- 1.0
- Author:
- Michael Nitschinger
-
Constructor Summary
Constructors Constructor Description ResponseEvent()
-
Method Summary
Modifier and Type Method Description CouchbaseMessage
getMessage()
Get the response from the payload.rx.subjects.Subject<CouchbaseResponse,CouchbaseResponse>
getObservable()
ResponseEvent
setMessage(CouchbaseMessage message)
Set the new response as a payload for this event.ResponseEvent
setObservable(rx.subjects.Subject<CouchbaseResponse,CouchbaseResponse> observable)
String
toString()
-
Constructor Details
-
ResponseEvent
public ResponseEvent()
-
-
Method Details
-
setMessage
Set the new response as a payload for this event.- Parameters:
message
- the response to override.- Returns:
- the
ResponseEvent
for method chaining.
-
getMessage
Get the response from the payload.- Returns:
- the actual response.
-
getObservable
-
setObservable
public ResponseEvent setObservable(rx.subjects.Subject<CouchbaseResponse,CouchbaseResponse> observable) -
toString
-