T
- public class KeepEventBusRequestObservable<T> extends java.lang.Object implements EventBusRequestObservable<T>
Handles the communication from an Handler to and from the eventbus Abstracts the creation of the temporary listener address and processing of replies and errors
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
KeepEventBusRequestObservable(io.vertx.core.Vertx vertx,
java.lang.String address,
io.vertx.core.MultiMap headers,
io.vertx.core.json.JsonObject payload) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
java.lang.String |
getAddress() |
java.lang.String |
getCacheHeader() |
io.vertx.core.MultiMap |
getHeaders() |
io.vertx.core.json.JsonObject |
getPayload() |
java.lang.String |
getTotalCount() |
void |
request(long n)
Sends data from the queue to the subscriber to supply additional data until the queue is exhausted
|
void |
subscribe(io.reactivex.ObservableEmitter<T> incomingObserver) |
public KeepEventBusRequestObservable(io.vertx.core.Vertx vertx, java.lang.String address, io.vertx.core.MultiMap headers, io.vertx.core.json.JsonObject payload)
vertx
- address
- headers
- payload
- public void cancel()
cancel
in interface org.reactivestreams.Subscription
public java.lang.String getAddress()
public io.vertx.core.MultiMap getHeaders()
public io.vertx.core.json.JsonObject getPayload()
public java.lang.String getTotalCount()
getTotalCount
in interface EventBusRequestObservable<T>
public void request(long n)
Sends data from the queue to the subscriber to supply additional data until the queue is exhausted
request
in interface org.reactivestreams.Subscription
n
- how many items are requested typically we expect onepublic void subscribe(io.reactivex.ObservableEmitter<T> incomingObserver)
subscribe
in interface io.reactivex.ObservableOnSubscribe<T>
public java.lang.String getCacheHeader()
getCacheHeader
in interface EventBusRequestObservable<T>