EventBus address that can
be read from.
The EventBus#consumer(String) or EventBus#localConsumer(String)
creates a new consumer, the returned consumer is not yet registered against the event bus. Registration
is effective after the handler(io. method is invoked.
The consumer is unregistered from the event bus using the unregister() method or by calling the
handler(io. with a null value..
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public ReadStream | |
| public void | completionHandler(Handler<AsyncResult<Void>>
the completion handler completionHandler)Optional method which can be called to indicate when the registration has been propagated across the cluster. |
| public MessageConsumer | |
| public MessageConsumer | |
| public MessageConsumer | fetch(long amount)
Redeclares io. Fetch the specified |
| public int | Returns: the maximum number of messages that can be buffered when this stream is paused
|
| public MessageConsumer | |
| public boolean | |
| public MessageConsumer | pause()
Redeclares io. Pause the |
| public MessageConsumer | resume()
Redeclares io. Resume reading, and sets the buffer in |
| public MessageConsumer | Returns: this registrationthe maximum number of messages that can be buffered maxBufferedMessages)
Deprecated
for removal, instead use
MessageConsumerOptions#setMaxBufferedMessages(int)
Set the number of messages this registration will buffer when this stream is paused. |
| public Future | |
| public void | unregister(Handler<AsyncResult<Void>>
the handler called when the unregister is done. For example in a cluster when all nodes of the
event bus have been unregistered. completionHandler)Unregisters the handler which created this registration |
| address | back to summary |
|---|---|
public String address()
| |
| bodyStream | back to summary |
|---|---|
public ReadStream
| |
| completionHandler | back to summary |
|---|---|
| public void completionHandler(Handler<AsyncResult<Void>> completionHandler) Optional method which can be called to indicate when the registration has been propagated across the cluster.
| |
| endHandler | back to summary |
|---|---|
public MessageConsumer
| |
| exceptionHandler | back to summary |
|---|---|
public MessageConsumer
| |
| fetch | back to summary |
|---|---|
| public MessageConsumer Redeclares io. Doc from io. Fetch the specified
| |
| getMaxBufferedMessages | back to summary |
|---|---|
public int getMaxBufferedMessages()
| |
| handler | back to summary |
|---|---|
public MessageConsumer
| |
| isRegistered | back to summary |
|---|---|
public boolean isRegistered()
| |
| pause | back to summary |
|---|---|
| public MessageConsumer Redeclares io. Doc from io. Pause the
While it's paused, no data will be sent to the data
| |
| resume | back to summary |
|---|---|
| public MessageConsumer Redeclares io. Doc from io. Resume reading, and sets the buffer in
If the
| |
| setMaxBufferedMessages | back to summary |
|---|---|
| public MessageConsumer Deprecated for removal, instead use 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 Future Unregisters the handler which created this registration | |
| unregister | back to summary |
|---|---|
| public void unregister(Handler<AsyncResult<Void>> completionHandler) Unregisters the handler which created this registration
| |