public abstract class AbstractClientConnection extends AbstractRemoteConnection implements ClientConnection
saslCodec
Constructor and Description |
---|
AbstractClientConnection(io.netty.channel.socket.SocketChannel channel,
String name) |
AbstractClientConnection(io.netty.channel.socket.SocketChannel channel,
String name,
EncryptionContext encryptContext) |
Modifier and Type | Method and Description |
---|---|
void |
channelClosed(RpcException ex)
Called from the RpcBus's channel close handler to close all remaining
resources associated with this connection.
|
void |
disposeSaslClient() |
protected abstract org.slf4j.Logger |
getLogger() |
SaslClient |
getSaslClient() |
void |
setSaslClient(SaslClient saslClient) |
addSecurityHandlers, blockOnNotWritable, close, createNewRpcListener, decConnectionCounter, getAndRemoveRpcOutcome, getChannel, getEncryptionCtxtString, getMaxWrappedSize, getName, getRemoteAddress, getWrapSizeLimit, incConnectionCounter, inEventLoop, isActive, isEncryptionEnabled, recordRemoteFailure, setAutoRead, setEncryption, setMaxWrappedSize, setWrapSizeLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSecurityHandlers, blockOnNotWritable, close, createNewRpcListener, getAllocator, getAndRemoveRpcOutcome, getChannel, getName, getRemoteAddress, inEventLoop, isActive, recordRemoteFailure
setAutoRead
getEncryptionCtxtString, getMaxWrappedSize, getWrapSizeLimit, isEncryptionEnabled, setEncryption, setMaxWrappedSize, setWrapSizeLimit
public AbstractClientConnection(io.netty.channel.socket.SocketChannel channel, String name, EncryptionContext encryptContext)
public AbstractClientConnection(io.netty.channel.socket.SocketChannel channel, String name)
protected abstract org.slf4j.Logger getLogger()
public void setSaslClient(SaslClient saslClient)
setSaslClient
in interface ClientConnection
public SaslClient getSaslClient()
getSaslClient
in interface ClientConnection
public void disposeSaslClient()
disposeSaslClient
in interface ClientConnection
public void channelClosed(RpcException ex)
AbstractRemoteConnection
channelClosed
in interface RemoteConnection
channelClosed
in class AbstractRemoteConnection
ex
- The exception that caused the channel to close.Copyright © 1970 The Apache Software Foundation. All rights reserved.