public abstract class AbstractServerConnection<S extends ServerConnection<S>> extends AbstractRemoteConnection implements ServerConnection<S>
saslCodec
Constructor and Description |
---|
AbstractServerConnection(io.netty.channel.socket.SocketChannel channel,
ConnectionConfig config,
RequestHandler<S> handler) |
AbstractServerConnection(io.netty.channel.socket.SocketChannel channel,
String name,
ConnectionConfig config,
RequestHandler<S> handler) |
Modifier and Type | Method and Description |
---|---|
void |
changeHandlerTo(RequestHandler<S> handler) |
void |
channelClosed(RpcException ex)
Called from the RpcBus's channel close handler to close all remaining
resources associated with this connection.
|
void |
disposeSaslServer() |
void |
finalizeSaslSession() |
BufferAllocator |
getAllocator() |
RequestHandler<S> |
getCurrentHandler() |
protected abstract org.slf4j.Logger |
getLogger() |
SaslServer |
getSaslServer() |
void |
initSaslServer(String mechanismName) |
void |
setEncryption(boolean encrypted) |
void |
setMaxWrappedSize(int maxWrappedSize) |
addSecurityHandlers, blockOnNotWritable, close, createNewRpcListener, decConnectionCounter, getAndRemoveRpcOutcome, getChannel, getEncryptionCtxtString, getMaxWrappedSize, getName, getRemoteAddress, getWrapSizeLimit, incConnectionCounter, inEventLoop, isActive, isEncryptionEnabled, recordRemoteFailure, setAutoRead, setWrapSizeLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSecurityHandlers, blockOnNotWritable, close, createNewRpcListener, getAndRemoveRpcOutcome, getChannel, getName, getRemoteAddress, inEventLoop, isActive, recordRemoteFailure
setAutoRead
getEncryptionCtxtString, getMaxWrappedSize, getWrapSizeLimit, isEncryptionEnabled, setWrapSizeLimit
public AbstractServerConnection(io.netty.channel.socket.SocketChannel channel, String name, ConnectionConfig config, RequestHandler<S> handler)
public AbstractServerConnection(io.netty.channel.socket.SocketChannel channel, ConnectionConfig config, RequestHandler<S> handler)
public BufferAllocator getAllocator()
getAllocator
in interface RemoteConnection
protected abstract org.slf4j.Logger getLogger()
public void initSaslServer(String mechanismName) throws SaslException
initSaslServer
in interface ServerConnection<S extends ServerConnection<S>>
SaslException
public SaslServer getSaslServer()
getSaslServer
in interface ServerConnection<S extends ServerConnection<S>>
public void finalizeSaslSession() throws IOException
finalizeSaslSession
in interface ServerConnection<S extends ServerConnection<S>>
IOException
public RequestHandler<S> getCurrentHandler()
getCurrentHandler
in interface ServerConnection<S extends ServerConnection<S>>
public void changeHandlerTo(RequestHandler<S> handler)
changeHandlerTo
in interface ServerConnection<S extends ServerConnection<S>>
public void setEncryption(boolean encrypted)
setEncryption
in interface EncryptionContext
setEncryption
in class AbstractRemoteConnection
public void setMaxWrappedSize(int maxWrappedSize)
setMaxWrappedSize
in interface EncryptionContext
setMaxWrappedSize
in class AbstractRemoteConnection
public void disposeSaslServer()
disposeSaslServer
in interface ServerConnection<S extends ServerConnection<S>>
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.