public class ControlConnection extends AbstractServerConnection<ControlConnection> implements ClientConnection
saslCodec
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 |
decConnectionCounter() |
void |
disposeSaslClient() |
boolean |
equals(Object obj) |
protected org.slf4j.Logger |
getLogger() |
SaslClient |
getSaslClient() |
int |
hashCode() |
void |
incConnectionCounter() |
boolean |
isActive() |
<SEND extends com.google.protobuf.MessageLite,RECEIVE extends com.google.protobuf.MessageLite> |
send(RpcOutcomeListener<RECEIVE> outcomeListener,
BitControl.RpcType rpcType,
SEND protobufBody,
Class<RECEIVE> clazz,
io.netty.buffer.ByteBuf... dataBodies) |
<SEND extends com.google.protobuf.MessageLite,RECEIVE extends com.google.protobuf.MessageLite> |
sendUnsafe(RpcOutcomeListener<RECEIVE> outcomeListener,
BitControl.RpcType rpcType,
SEND protobufBody,
Class<RECEIVE> clazz,
io.netty.buffer.ByteBuf... dataBodies) |
void |
setSaslClient(SaslClient saslClient) |
changeHandlerTo, disposeSaslServer, finalizeSaslSession, getAllocator, getCurrentHandler, getSaslServer, initSaslServer, setEncryption, setMaxWrappedSize
addSecurityHandlers, blockOnNotWritable, close, createNewRpcListener, getAndRemoveRpcOutcome, getChannel, getEncryptionCtxtString, getMaxWrappedSize, getName, getRemoteAddress, getWrapSizeLimit, inEventLoop, isEncryptionEnabled, recordRemoteFailure, setAutoRead, setWrapSizeLimit
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addSecurityHandlers, blockOnNotWritable, close, createNewRpcListener, getAllocator, getAndRemoveRpcOutcome, getChannel, getName, getRemoteAddress, inEventLoop, recordRemoteFailure
setAutoRead
getEncryptionCtxtString, getMaxWrappedSize, getWrapSizeLimit, isEncryptionEnabled, setEncryption, setMaxWrappedSize, setWrapSizeLimit
public <SEND extends com.google.protobuf.MessageLite,RECEIVE extends com.google.protobuf.MessageLite> void send(RpcOutcomeListener<RECEIVE> outcomeListener, BitControl.RpcType rpcType, SEND protobufBody, Class<RECEIVE> clazz, io.netty.buffer.ByteBuf... dataBodies)
public <SEND extends com.google.protobuf.MessageLite,RECEIVE extends com.google.protobuf.MessageLite> void sendUnsafe(RpcOutcomeListener<RECEIVE> outcomeListener, BitControl.RpcType rpcType, SEND protobufBody, Class<RECEIVE> clazz, io.netty.buffer.ByteBuf... dataBodies)
public boolean isActive()
isActive
in interface RemoteConnection
isActive
in class AbstractRemoteConnection
protected org.slf4j.Logger getLogger()
getLogger
in class AbstractServerConnection<ControlConnection>
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 AbstractServerConnection<ControlConnection>
ex
- The exception that caused the channel to close.public void incConnectionCounter()
incConnectionCounter
in class AbstractRemoteConnection
public void decConnectionCounter()
decConnectionCounter
in class AbstractRemoteConnection
Copyright © 1970 The Apache Software Foundation. All rights reserved.