Top Fields Constructors Methods
io.vertx.core.eventbus.impl.clustered

pack-priv Class ConnectionHolder

extends Object
Class Inheritance
Imports
io.vertx.core.Promise, io.vertx.core.buffer.Buffer, io.vertx.core.eventbus.EventBusOptions, io.vertx.core.eventbus.impl.OutboundDeliveryContext, io.vertx.core.eventbus.impl.codecs.PingMessageCodec, io.vertx.core.impl.VertxInternal, io.vertx.core.impl.logging.Logger, .LoggerFactory, io.vertx.core.net.NetSocket, io.vertx.core.net.impl.ConnectionBase, io.vertx.core.spi.cluster.NodeInfo, io.vertx.core.spi.metrics.EventBusMetrics, java.util.ArrayDeque, .Queue

Author
Tim Fox

Field Summary

Modifier and TypeField and Description
private boolean
private final ClusteredEventBus
private static final Logger
private final EventBusMetrics<H>
private Queue<OutboundDeliveryContext<?>>
private static final String
private long
private final String
private NetSocket
private long
private final VertxInternal

Constructor Summary

AccessConstructor and Description
pack-priv
ConnectionHolder(ClusteredEventBus eventBus, String remoteNodeId)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
private void
pack-priv void
private synchronized void
private void
pack-priv synchronized void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectedback to summary
private boolean connected
eventBusback to summary
private final ClusteredEventBus eventBus
logback to summary
private static final Logger log
metricsback to summary
private final EventBusMetrics<H> metrics
pendingback to summary
private Queue<OutboundDeliveryContext<?>> pending
PING_ADDRESSback to summary
private static final String PING_ADDRESS
pingTimeoutIDback to summary
private long pingTimeoutID
remoteNodeIdback to summary
private final String remoteNodeId
socketback to summary
private NetSocket socket
timeoutIDback to summary
private long timeoutID
vertxback to summary
private final VertxInternal vertx

Constructor Detail

ConnectionHolderback to summary
pack-priv ConnectionHolder(ClusteredEventBus eventBus, String remoteNodeId)

Method Detail

closeback to summary
pack-priv void close()
closeback to summary
private void close(Throwable cause)
connectback to summary
pack-priv void connect()
connectedback to summary
private synchronized void connected(NetSocket socket)
schedulePingback to summary
private void schedulePing()
writeMessageback to summary
pack-priv synchronized void writeMessage(OutboundDeliveryContext<?> ctx)