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 aCouchbaseResponse
and associated information.- Since:
- 1.0
- Author:
- Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description ResponseEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods 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()
-
-
-
Method Detail
-
setMessage
public ResponseEvent setMessage(CouchbaseMessage message)
Set the new response as a payload for this event.- Parameters:
message
- the response to override.- Returns:
- the
ResponseEvent
for method chaining.
-
getMessage
public CouchbaseMessage getMessage()
Get the response from the payload.- Returns:
- the actual response.
-
getObservable
public rx.subjects.Subject<CouchbaseResponse,CouchbaseResponse> getObservable()
-
setObservable
public ResponseEvent setObservable(rx.subjects.Subject<CouchbaseResponse,CouchbaseResponse> observable)
-
-