public interface OutputConnection extends Connection<OutputConnection>, Output<OutputConnection>, OutputGroupSupport<OutputConnection>
Output connections represent a direct connection between two instances of separate components. Each output connection points to a single input connection which receives messages from this connection and this connection only.
When the connection is opened, it will attempt to connect to the
corresponding input connection (the other side of the connection) by
periodically sending connect messages to the input connection.
Once the input connection replies to the output connection, the connection
is opened.
The output connection sends messages for the connection and on behalf of any groups created on the connection. Each message that is sent by the output connection is tagged with a monotonically increasing number. The connection listens for messages indicating that a message was received out of order. If a message was received out of order, the output connection will begin resending messages from the last known correct message.
| Modifier and Type | Method and Description |
|---|---|
OutputConnection |
batch(String id,
org.vertx.java.core.Handler<ConnectionOutputBatch> handler)
Creates an output batch on the connection.
|
address, sizedrainHandler, getSendQueueMaxSize, send, send, send, send, send, send, send, send, send, send, send, send, send, send, sendQueueFull, setSendQueueMaxSize, size, vertxgroupOutputConnection batch(String id, org.vertx.java.core.Handler<ConnectionOutputBatch> handler)
id - The unique batch ID.handler - A handler to be called once the batch is started.Copyright © 2013-2014. All Rights Reserved.