public class WebUserConnection extends AbstractDisposableUserClientConnection implements ConnectionThrottle
Channel associated with it but do have an
EventExecutor out of BitServer EventLoopGroup. Since there is no actual connection established using this class,
hence the close event will never be fired by underlying layer and close future is set only when the
WebSessionResources are closed.| Modifier and Type | Class and Description |
|---|---|
static class |
WebUserConnection.AnonWebUserConnection |
| Modifier and Type | Field and Description |
|---|---|
Set<String> |
columns |
List<Map<String,String>> |
results |
protected WebSessionResources |
webSessionResources |
error, exception, latch| Modifier and Type | Method and Description |
|---|---|
void |
cleanupSession()
For authenticated WebUser no cleanup of
WebSessionResources is done since it's re-used
for all the queries until lifetime of the web session. |
io.netty.channel.ChannelFuture |
getChannelClosureFuture()
Returns the
ChannelFuture which will be notified when this
channel is closed. |
SocketAddress |
getRemoteAddress() |
UserSession |
getSession() |
void |
sendData(RpcOutcomeListener<GeneralRPCProtos.Ack> listener,
QueryWritableBatch result)
Send query data to client.
|
void |
setAutoRead(boolean enableAutoRead) |
await, await, getError, sendResultprotected WebSessionResources webSessionResources
public UserSession getSession()
getSession in interface UserClientConnectionpublic void sendData(RpcOutcomeListener<GeneralRPCProtos.Ack> listener, QueryWritableBatch result)
UserClientConnectionlistenersendData in interface UserClientConnectionpublic 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 UserClientConnectionpublic void setAutoRead(boolean enableAutoRead)
setAutoRead in interface ConnectionThrottlepublic void cleanupSession()
WebSessionResources is done since it's re-used
for all the queries until lifetime of the web session.Copyright © 2017 The Apache Software Foundation. All rights reserved.