| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private Handler | |
| private final ContextInternal | |
| private long | |
| private Handler | |
| private Handler | |
| private Handler | |
| private final boolean | |
| private static final Logger | |
| private int | |
| private Queue | |
| private Promise | |
| private final Vertx |
| Access | Constructor and Description |
|---|---|
| pack-priv | MessageConsumerImpl(Vertx vertx, ContextInternal context, EventBusImpl eventBus, String address, boolean localOnly, int maxBufferedMessages)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public ReadStream | |
| private synchronized void | |
| public synchronized void | completionHandler(Handler<AsyncResult<Void>>
the completion handler handler)Implements io. Optional method which can be called to indicate when the registration has been propagated across the cluster. |
| private void | |
| public synchronized void | |
| protected void | dispatch(Message<T> msg, ContextInternal context, Handler<Message<T>> handler)
Implements abstract io.
|
| protected boolean | doReceive(Message<T> message)
Implements abstract io.
|
| public synchronized MessageConsumer | |
| public synchronized MessageConsumer | exceptionHandler(Handler<Throwable> handler)
Implements io.
|
| public synchronized MessageConsumer | fetch(long amount)
Implements io. Fetch the specified |
| public synchronized Handler | |
| public synchronized int | |
| public synchronized MessageConsumer | |
| public synchronized MessageConsumer | pause()
Implements io. Pause the |
| public MessageConsumer | resume()
Implements io. Resume reading, and sets the buffer in |
| public MessageConsumer | setMaxBufferedMessages(int
the maximum number of messages that can be buffered maxBufferedMessages)Implements io. Set the number of messages this registration will buffer when this stream is paused. |
| public synchronized Future | unregister()
Overrides io. Implements io. Unregisters the handler which created this registration |
| address | back to summary |
|---|---|
| private final String address Hides io. | |
| completionHandler | back to summary |
|---|---|
| private Handler<AsyncResult<Void>> completionHandler | |
| context | back to summary |
|---|---|
| private final ContextInternal context Hides io. | |
| demand | back to summary |
|---|---|
| private long demand | |
| discardHandler | back to summary |
|---|---|
| private Handler<Message<T>> discardHandler | |
| endHandler | back to summary |
|---|---|
| private Handler<Void> endHandler | |
| handler | back to summary |
|---|---|
| private Handler<Message<T>> handler | |
| localOnly | back to summary |
|---|---|
| private final boolean localOnly | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| maxBufferedMessages | back to summary |
|---|---|
| private int maxBufferedMessages | |
| pending | back to summary |
|---|---|
| private Queue<Message<T>> pending | |
| result | back to summary |
|---|---|
| private Promise<Void> result | |
| vertx | back to summary |
|---|---|
| private final Vertx vertx | |
| MessageConsumerImpl | back to summary |
|---|---|
| pack-priv MessageConsumerImpl(Vertx vertx, ContextInternal context, EventBusImpl eventBus, String address, boolean localOnly, int maxBufferedMessages) | |
| address | back to summary |
|---|---|
| public String address() Implements io.
| |
| bodyStream | back to summary |
|---|---|
| public ReadStream Implements io.
| |
| checkNextTick | back to summary |
|---|---|
| private synchronized void checkNextTick() | |
| completionHandler | back to summary |
|---|---|
| public synchronized void completionHandler(Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Optional method which can be called to indicate when the registration has been propagated across the cluster.
| |
| deliver | back to summary |
|---|---|
| private void deliver(Handler<Message<T>> theHandler, Message<T> message) | |
| discardHandler | back to summary |
|---|---|
| public synchronized void discardHandler(Handler<Message<T>> handler) | |
| dispatch | back to summary |
|---|---|
| protected void dispatch(Message<T> msg, ContextInternal context, Handler<Message<T>> handler) Implements abstract io.
| |
| doReceive | back to summary |
|---|---|
| protected boolean doReceive(Message<T> message) Implements abstract io. | |
| endHandler | back to summary |
|---|---|
| public synchronized MessageConsumer Implements io.
| |
| exceptionHandler | back to summary |
|---|---|
| public synchronized MessageConsumer Implements io.
| |
| fetch | back to summary |
|---|---|
| public synchronized MessageConsumer Implements io. Doc from io. Fetch the specified
| |
| getHandler | back to summary |
|---|---|
| public synchronized Handler | |
| getMaxBufferedMessages | back to summary |
|---|---|
| public synchronized int getMaxBufferedMessages() Implements io.
| |
| handler | back to summary |
|---|---|
| public synchronized MessageConsumer Implements io.
| |
| pause | back to summary |
|---|---|
| public synchronized MessageConsumer Implements io. Doc from io. Pause the
While it's paused, no data will be sent to the data
| |
| resume | back to summary |
|---|---|
| public MessageConsumer Implements io. Doc from io. Resume reading, and sets the buffer in
If the
| |
| setMaxBufferedMessages | back to summary |
|---|---|
| public MessageConsumer Implements io. Doc from io. Set the number of messages this registration will buffer when this stream is paused. The default
value is When a new value is set, buffered messages may be discarded to reach the new value. The most recent messages will be kept.
| |
| unregister | back to summary |
|---|---|
| public synchronized Future Overrides io. Implements io. Doc from io. Unregisters the handler which created this registration
| |