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) |
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, setWrapSizeLimitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddSecurityHandlers, blockOnNotWritable, close, createNewRpcListener, getAndRemoveRpcOutcome, getChannel, getName, getRemoteAddress, inEventLoop, isActive, recordRemoteFailuresetAutoReadgetEncryptionCtxtString, getMaxWrappedSize, getWrapSizeLimit, isEncryptionEnabled, setWrapSizeLimitpublic 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 RemoteConnectionprotected abstract org.slf4j.Logger getLogger()
public void initSaslServer(String mechanismName) throws SaslException
initSaslServer in interface ServerConnection<S extends ServerConnection<S>>SaslExceptionpublic SaslServer getSaslServer()
getSaslServer in interface ServerConnection<S extends ServerConnection<S>>public void finalizeSaslSession()
throws IOException
finalizeSaslSession in interface ServerConnection<S extends ServerConnection<S>>IOExceptionpublic 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 EncryptionContextsetEncryption in class AbstractRemoteConnectionpublic void setMaxWrappedSize(int maxWrappedSize)
setMaxWrappedSize in interface EncryptionContextsetMaxWrappedSize in class AbstractRemoteConnectionpublic void disposeSaslServer()
disposeSaslServer in interface ServerConnection<S extends ServerConnection<S>>public void channelClosed(RpcException ex)
channelClosed in interface RemoteConnectionchannelClosed in class AbstractRemoteConnectionCopyright © 2022 The Apache Software Foundation. All rights reserved.