| Modifier and Type | Field and Description |
|---|---|
| protected final ChannelHandlerContext | |
| private boolean | |
| public static final VertxException | CLOSED_EXCEPTION
An exception used to signal a closed connection to an exception handler. |
| private Future | |
| private Handler | |
| private ChannelPromise | |
| protected final ContextInternal | |
| private Handler | |
| public static final AttributeKey | |
| private SocketAddress | |
| private static final Logger | |
| private static final int | |
| private Object | |
| private static final long | |
| private static final long | |
| private boolean | |
| private boolean | |
| private SocketAddress | |
| private SocketAddress | |
| private long | |
| private long | |
| public static final AttributeKey | |
| private SocketAddress | |
| protected final VertxInternal | |
| public final VoidChannelPromise | |
| private int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final Channel | |
| public ChannelPromise | |
| public final ChannelHandlerContext | |
| private SocketAddress | |
| private SocketAddress | |
| private void | |
| pack-priv void | |
| public Future | |
| public final void | |
| public Future | |
| public synchronized ConnectionBase | |
| public void | |
| private void | |
| public void | |
| public void | |
| pack-priv final void | endReadAndFlush()
This method is exclusively called by |
| public synchronized ConnectionBase | |
| protected synchronized Handler | |
| public void | |
| public final void | |
| public final void | |
| public void | |
| public void | |
| public final ContextInternal | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected abstract void | |
| protected void | |
| public String | |
| public boolean | |
| public boolean | |
| public boolean | |
| public SocketAddress | |
| public SocketAddress | |
| public final synchronized void | |
| public final synchronized Object | |
| public abstract NetworkMetrics | |
| public X509Certificate[] | peerCertificateChain()
References Deprecated
X509Certificate is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public List | |
| private void | |
| pack-priv final void | |
| public SocketAddress | |
| public SocketAddress | |
| public String | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final ChannelFuture | |
| private void | sendFileRegion(RandomAccessFile
the file to send file, long the file offset offset, long the file length length, ChannelPromise the write future to be completed when the transfer is done or failed writeFuture)Send a file as a file region for zero copy transfer to the socket. |
| protected long | |
| private SocketAddress | |
| public SSLSession | |
| protected boolean | |
| private ChannelPromise | |
| private void | write(Object
the message to write msg, Boolean a flush, ChannelPromise null flush value means to flush when there is no read in progress, otherwise it will apply the policythe promise receiving the completion event promise)This method is exclusively called on the event-loop thread |
| private void | writeClose(PromiseInternal<Void>
the promise receiving the completion event promise)This method is exclusively called on the event-loop thread |
| public final void | |
| public final void | |
| public final void | |
| public void |
| chctx | back to summary |
|---|---|
| protected final ChannelHandlerContext chctx | |
| closed | back to summary |
|---|---|
| private boolean closed | |
| CLOSED_EXCEPTION | back to summary |
|---|---|
| public static final VertxException CLOSED_EXCEPTION An exception used to signal a closed connection to an exception handler. Exception are expensive to create, this instance can be used for this purpose. It does not capture a stack trace to not be misleading. | |
| closeFuture | back to summary |
|---|---|
| private Future<Void> closeFuture | |
| closeHandler | back to summary |
|---|---|
| private Handler<Void> closeHandler | |
| closePromise | back to summary |
|---|---|
| private ChannelPromise closePromise | |
| context | back to summary |
|---|---|
| protected final ContextInternal context | |
| exceptionHandler | back to summary |
|---|---|
| private Handler<Throwable> exceptionHandler | |
| LOCAL_ADDRESS_OVERRIDE | back to summary |
|---|---|
| public static final AttributeKey<SocketAddress> LOCAL_ADDRESS_OVERRIDE | |
| localAddress | back to summary |
|---|---|
| private SocketAddress localAddress | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| MAX_REGION_SIZE | back to summary |
|---|---|
| private static final int MAX_REGION_SIZE | |
| metric | back to summary |
|---|---|
| private Object metric | |
| METRICS_REPORTED_BYTES_HIGH_MASK | back to summary |
|---|---|
| private static final long METRICS_REPORTED_BYTES_HIGH_MASK | |
| METRICS_REPORTED_BYTES_LOW_MASK | back to summary |
|---|---|
| private static final long METRICS_REPORTED_BYTES_LOW_MASK | |
| needsFlush | back to summary |
|---|---|
| private boolean needsFlush | |
| read | back to summary |
|---|---|
| private boolean read | |
| realLocalAddress | back to summary |
|---|---|
| private SocketAddress realLocalAddress | |
| realRemoteAddress | back to summary |
|---|---|
| private SocketAddress realRemoteAddress | |
| remainingBytesRead | back to summary |
|---|---|
| private long remainingBytesRead | |
| remainingBytesWritten | back to summary |
|---|---|
| private long remainingBytesWritten | |
| REMOTE_ADDRESS_OVERRIDE | back to summary |
|---|---|
| public static final AttributeKey<SocketAddress> REMOTE_ADDRESS_OVERRIDE | |
| remoteAddress | back to summary |
|---|---|
| private SocketAddress remoteAddress | |
| vertx | back to summary |
|---|---|
| protected final VertxInternal vertx | |
| voidPromise | back to summary |
|---|---|
| public final VoidChannelPromise voidPromise | |
| writeInProgress | back to summary |
|---|---|
| private int writeInProgress | |
| ConnectionBase | back to summary |
|---|---|
| protected ConnectionBase(ContextInternal context, ChannelHandlerContext chctx) | |
| channel | back to summary |
|---|---|
public final Channel channel()
| |
| channelFuture | back to summary |
|---|---|
| public ChannelPromise channelFuture() | |
| channelHandlerContext | back to summary |
|---|---|
| public final ChannelHandlerContext channelHandlerContext() | |
| channelLocalAddress | back to summary |
|---|---|
| private SocketAddress channelLocalAddress() | |
| channelRemoteAddress | back to summary |
|---|---|
| private SocketAddress channelRemoteAddress() | |
| checkCloseHandler | back to summary |
|---|---|
| private void checkCloseHandler(AsyncResult<Void> ar) | |
| close | back to summary |
|---|---|
| pack-priv void close(ChannelPromise promise) | |
| close | back to summary |
|---|---|
| public Future Close the connection | |
| close | back to summary |
|---|---|
| public final void close(Handler<AsyncResult<Void>> handler) Close the connection and notifies the | |
| closeFuture | back to summary |
|---|---|
| public Future | |
| closeHandler | back to summary |
|---|---|
| public synchronized ConnectionBase closeHandler(Handler<Void> handler) | |
| doPause | back to summary |
|---|---|
| public void doPause() | |
| doReportBytesRead | back to summary |
|---|---|
| private void doReportBytesRead(Object msg, NetworkMetrics<S> metrics) | |
| doResume | back to summary |
|---|---|
| public void doResume() | |
| doSetWriteQueueMaxSize | back to summary |
|---|---|
| public void doSetWriteQueueMaxSize(int size) | |
| endReadAndFlush | back to summary |
|---|---|
| pack-priv final void endReadAndFlush() This method is exclusively called by | |
| exceptionHandler | back to summary |
|---|---|
| public synchronized ConnectionBase exceptionHandler(Handler<Throwable> handler) | |
| exceptionHandler | back to summary |
|---|---|
| protected synchronized Handler | |
| fail | back to summary |
|---|---|
| public void fail(Throwable error) Fail the connection, the
| |
| flush | back to summary |
|---|---|
| public final void flush() Asynchronous flush. | |
| flush | back to summary |
|---|---|
| public final void flush(ChannelPromise promise) Asynchronous flush.
| |
| flushBytesRead | back to summary |
|---|---|
| public void flushBytesRead() | |
| flushBytesWritten | back to summary |
|---|---|
| public void flushBytesWritten() | |
| getContext | back to summary |
|---|---|
| public final ContextInternal getContext() | |
| handleClosed | back to summary |
|---|---|
| protected void handleClosed() | |
| handleEvent | back to summary |
|---|---|
| protected void handleEvent(Object evt) | |
| handleException | back to summary |
|---|---|
| protected void handleException(Throwable t) | |
| handleIdle | back to summary |
|---|---|
| protected void handleIdle(IdleStateEvent event) Called by the Netty handler when the connection becomes idle. The default implementation closes the connection. Subclasses can override it to prevent the idle event to happen (e.g when the connection is pooled) or perform extra work when the idle event happens. | |
| handleInterestedOpsChanged | back to summary |
|---|---|
| protected abstract void handleInterestedOpsChanged() | |
| handleMessage | back to summary |
|---|---|
| protected void handleMessage(Object msg) | |
| indicatedServerName | back to summary |
|---|---|
| public String indicatedServerName() | |
| isNotWritable | back to summary |
|---|---|
| public boolean isNotWritable() | |
| isSsl | back to summary |
|---|---|
| public boolean isSsl() | |
| isTrafficShaped | back to summary |
|---|---|
| public boolean isTrafficShaped() | |
| localAddress | back to summary |
|---|---|
| public SocketAddress localAddress() | |
| localAddress | back to summary |
|---|---|
| public SocketAddress localAddress(boolean real) | |
| metric | back to summary |
|---|---|
| public final synchronized void metric(Object metric) | |
| metric | back to summary |
|---|---|
| public final synchronized Object metric() | |
| metrics | back to summary |
|---|---|
| public abstract NetworkMetrics | |
| peerCertificateChain | back to summary |
|---|---|
| public X509Certificate[] peerCertificateChain() throws SSLPeerUnverifiedException
References Deprecated
See corresponding docs for further information. | |
| peerCertificates | back to summary |
|---|---|
| public List | |
| queueForWrite | back to summary |
|---|---|
| private void queueForWrite(Object msg, boolean forceFlush, ChannelPromise promise) | |
| read | back to summary |
|---|---|
| pack-priv final void read(Object msg) This method is exclusively called by | |
| remoteAddress | back to summary |
|---|---|
| public SocketAddress remoteAddress() | |
| remoteAddress | back to summary |
|---|---|
| public SocketAddress remoteAddress(boolean real) | |
| remoteName | back to summary |
|---|---|
| public String remoteName() | |
| reportBytesRead | back to summary |
|---|---|
| public final void reportBytesRead(Object msg) | |
| reportBytesRead | back to summary |
|---|---|
| public final void reportBytesRead(long numberOfBytes) | |
| reportBytesWritten | back to summary |
|---|---|
| public final void reportBytesWritten(long numberOfBytes) | |
| reportsBytesWritten | back to summary |
|---|---|
| public final void reportsBytesWritten(Object msg) | |
| sendFile | back to summary |
|---|---|
| public final ChannelFuture sendFile(RandomAccessFile raf, long offset, long length) throws IOException | |
| sendFileRegion | back to summary |
|---|---|
| private void sendFileRegion(RandomAccessFile file, long offset, long length, ChannelPromise writeFuture) Send a file as a file region for zero copy transfer to the socket. The implementation splits the file into multiple regions to avoid stalling the pipeline and producing idle timeouts for very large files.
| |
| sizeof | back to summary |
|---|---|
| protected long sizeof(Object msg) | |
| socketAdressOverride | back to summary |
|---|---|
| private SocketAddress socketAdressOverride(AttributeKey<SocketAddress> key) | |
| sslSession | back to summary |
|---|---|
| public SSLSession sslSession() | |
| supportsFileRegion | back to summary |
|---|---|
| protected boolean supportsFileRegion() | |
| wrap | back to summary |
|---|---|
| private ChannelPromise wrap(FutureListener<Void> handler) | |
| write | back to summary |
|---|---|
| private void write(Object msg, Boolean flush, ChannelPromise promise) This method is exclusively called on the event-loop thread
| |
| writeClose | back to summary |
|---|---|
| private void writeClose(PromiseInternal<Void> promise) This method is exclusively called on the event-loop thread
| |
| writeToChannel | back to summary |
|---|---|
| public final void writeToChannel(Object msg, FutureListener<Void> listener) | |
| writeToChannel | back to summary |
|---|---|
| public final void writeToChannel(Object msg, ChannelPromise promise) | |
| writeToChannel | back to summary |
|---|---|
| public final void writeToChannel(Object msg, boolean forceFlush, ChannelPromise promise) | |
| writeToChannel | back to summary |
|---|---|
| public void writeToChannel(Object obj) | |