public class UserServer.BitToUserConnection extends AbstractServerConnection<UserServer.BitToUserConnection> implements UserClientConnection
AbstractRemoteConnection implementation for user connection. Also implements UserClientConnection.saslCodec| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
decConnectionCounter() |
void |
finalizeSaslSession() |
io.netty.channel.ChannelFuture |
getChannelClosureFuture()
Returns the
ChannelFuture which will be notified when this
channel is closed. |
protected org.slf4j.Logger |
getLogger() |
SocketAddress |
getRemoteAddress() |
UserSession |
getSession() |
void |
incConnectionCounter() |
void |
sendData(RpcOutcomeListener<GeneralRPCProtos.Ack> listener,
QueryWritableBatch result)
Send query data to client.
|
void |
sendResult(RpcOutcomeListener<GeneralRPCProtos.Ack> listener,
UserBitShared.QueryResult result)
Send query result outcome to client.
|
changeHandlerTo, channelClosed, disposeSaslServer, getAllocator, getCurrentHandler, getSaslServer, initSaslServer, setEncryption, setMaxWrappedSizeaddSecurityHandlers, blockOnNotWritable, createNewRpcListener, getAndRemoveRpcOutcome, getChannel, getEncryptionCtxtString, getMaxWrappedSize, getName, getWrapSizeLimit, inEventLoop, isActive, isEncryptionEnabled, recordRemoteFailure, setAutoRead, setWrapSizeLimitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddSecurityHandlers, blockOnNotWritable, createNewRpcListener, getAndRemoveRpcOutcome, getChannel, getName, inEventLoop, isActive, recordRemoteFailuresetAutoReadgetEncryptionCtxtString, getMaxWrappedSize, getWrapSizeLimit, isEncryptionEnabled, setWrapSizeLimitpublic void finalizeSaslSession()
throws IOException
finalizeSaslSession in interface ServerConnection<UserServer.BitToUserConnection>finalizeSaslSession in class AbstractServerConnection<UserServer.BitToUserConnection>IOExceptionpublic UserSession getSession()
getSession in interface UserClientConnectionpublic void sendResult(RpcOutcomeListener<GeneralRPCProtos.Ack> listener, UserBitShared.QueryResult result)
UserClientConnectionlistenersendResult in interface UserClientConnectionpublic void sendData(RpcOutcomeListener<GeneralRPCProtos.Ack> listener, QueryWritableBatch result)
UserClientConnectionlistenersendData in interface UserClientConnectionprotected org.slf4j.Logger getLogger()
getLogger in class AbstractServerConnection<UserServer.BitToUserConnection>public io.netty.channel.ChannelFuture getChannelClosureFuture()
UserClientConnectionChannelFuture which will be notified when this
channel is closed. This method always returns the same future instance.getChannelClosureFuture in interface UserClientConnectionpublic SocketAddress getRemoteAddress()
getRemoteAddress in interface RemoteConnectiongetRemoteAddress in interface UserClientConnectiongetRemoteAddress in class AbstractRemoteConnectionpublic void close()
close in interface AutoCloseableclose in interface RemoteConnectionclose in class AbstractRemoteConnectionpublic void incConnectionCounter()
incConnectionCounter in class AbstractRemoteConnectionpublic void decConnectionCounter()
decConnectionCounter in class AbstractRemoteConnectionCopyright © 2017 The Apache Software Foundation. All rights reserved.