public abstract class ConnectionBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected io.netty.channel.Channel |
channel |
protected Handler<java.lang.Void> |
closeHandler |
protected DefaultContext |
context |
protected Handler<java.lang.Throwable> |
exceptionHandler |
protected VertxInternal |
vertx |
Modifier | Constructor and Description |
---|---|
protected |
ConnectionBase(VertxInternal vertx,
io.netty.channel.Channel channel,
DefaultContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
addFuture(Handler<AsyncResult<java.lang.Void>> doneHandler,
io.netty.channel.ChannelFuture future) |
void |
close()
Close the connection
|
void |
doPause() |
void |
doResume() |
void |
doSetWriteQueueMaxSize(int size) |
boolean |
doWriteQueueFull() |
void |
endReadAndFlush() |
protected DefaultContext |
getContext() |
javax.security.cert.X509Certificate[] |
getPeerCertificateChain() |
protected void |
handleClosed() |
protected void |
handleException(java.lang.Throwable t) |
protected void |
handleHandlerException(java.lang.Throwable t) |
protected abstract void |
handleInterestedOpsChanged() |
java.net.InetSocketAddress |
localAddress() |
io.netty.channel.ChannelFuture |
queueForWrite(java.lang.Object obj) |
java.net.InetSocketAddress |
remoteAddress() |
protected io.netty.channel.ChannelFuture |
sendFile(java.io.File file) |
protected void |
setContext() |
protected void |
setWritable(boolean writable) |
void |
startRead() |
protected boolean |
supportsFileRegion() |
io.netty.channel.ChannelFuture |
write(java.lang.Object obj) |
protected final VertxInternal vertx
protected final io.netty.channel.Channel channel
protected final DefaultContext context
protected Handler<java.lang.Throwable> exceptionHandler
protected Handler<java.lang.Void> closeHandler
protected ConnectionBase(VertxInternal vertx, io.netty.channel.Channel channel, DefaultContext context)
public final void startRead()
public final void endReadAndFlush()
public io.netty.channel.ChannelFuture queueForWrite(java.lang.Object obj)
public io.netty.channel.ChannelFuture write(java.lang.Object obj)
public void close()
public void doPause()
public void doResume()
public void doSetWriteQueueMaxSize(int size)
public boolean doWriteQueueFull()
protected void setWritable(boolean writable)
protected DefaultContext getContext()
protected void handleException(java.lang.Throwable t)
protected void handleClosed()
protected void addFuture(Handler<AsyncResult<java.lang.Void>> doneHandler, io.netty.channel.ChannelFuture future)
protected void setContext()
protected void handleHandlerException(java.lang.Throwable t)
protected boolean supportsFileRegion()
protected io.netty.channel.ChannelFuture sendFile(java.io.File file)
public javax.security.cert.X509Certificate[] getPeerCertificateChain() throws javax.net.ssl.SSLPeerUnverifiedException
javax.net.ssl.SSLPeerUnverifiedException
public java.net.InetSocketAddress remoteAddress()
public java.net.InetSocketAddress localAddress()
protected abstract void handleInterestedOpsChanged()