public abstract class ConnectionBase extends Object
Modifier and Type | Field and Description |
---|---|
protected io.netty.channel.Channel |
channel |
protected Handler<Void> |
closeHandler |
protected ContextImpl |
context |
protected Handler<Throwable> |
exceptionHandler |
protected NetworkMetrics |
metrics |
protected VertxInternal |
vertx |
Modifier | Constructor and Description |
---|---|
protected |
ConnectionBase(VertxInternal vertx,
io.netty.channel.Channel channel,
ContextImpl context,
NetworkMetrics metrics) |
Modifier and Type | Method and Description |
---|---|
protected void |
addFuture(Handler<AsyncResult<Void>> completionHandler,
io.netty.channel.ChannelFuture future) |
protected void |
checkContext() |
void |
close()
Close the connection
|
void |
doPause() |
void |
doResume() |
void |
doSetWriteQueueMaxSize(int size) |
protected void |
endReadAndFlush() |
protected ContextImpl |
getContext() |
X509Certificate[] |
getPeerCertificateChain() |
protected void |
handleClosed() |
protected void |
handleException(Throwable t) |
protected abstract void |
handleInterestedOpsChanged() |
boolean |
isNotWritable() |
SocketAddress |
localAddress() |
protected abstract Object |
metric() |
io.netty.channel.ChannelFuture |
queueForWrite(Object obj) |
SocketAddress |
remoteAddress() |
void |
reportBytesRead(long numberOfBytes) |
void |
reportBytesWritten(long numberOfBytes) |
protected io.netty.channel.ChannelFuture |
sendFile(RandomAccessFile raf,
long fileLength) |
protected void |
startRead() |
protected boolean |
supportsFileRegion() |
io.netty.channel.ChannelFuture |
writeToChannel(Object obj) |
protected final VertxInternal vertx
protected final io.netty.channel.Channel channel
protected final ContextImpl context
protected final NetworkMetrics metrics
protected ConnectionBase(VertxInternal vertx, io.netty.channel.Channel channel, ContextImpl context, NetworkMetrics metrics)
protected final void startRead()
protected final void endReadAndFlush()
public io.netty.channel.ChannelFuture queueForWrite(Object obj)
public io.netty.channel.ChannelFuture writeToChannel(Object obj)
public boolean isNotWritable()
public void close()
public void doPause()
public void doResume()
public void doSetWriteQueueMaxSize(int size)
protected void checkContext()
protected ContextImpl getContext()
protected abstract Object metric()
protected void handleException(Throwable t)
protected void handleClosed()
protected abstract void handleInterestedOpsChanged()
protected void addFuture(Handler<AsyncResult<Void>> completionHandler, io.netty.channel.ChannelFuture future)
protected boolean supportsFileRegion()
public void reportBytesRead(long numberOfBytes)
public void reportBytesWritten(long numberOfBytes)
protected io.netty.channel.ChannelFuture sendFile(RandomAccessFile raf, long fileLength) throws IOException
IOException
public X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException
SSLPeerUnverifiedException
public SocketAddress remoteAddress()
public SocketAddress localAddress()
Copyright © 2015. All Rights Reserved.