public interface UserClientConnection
AbstractRemoteConnection
implementation for user connection:
Modifier and Type | Method and Description |
---|---|
io.netty.util.concurrent.Future<Void> |
getClosureFuture()
Returns the
Future which will be notified when this
channel is closed. |
SocketAddress |
getRemoteAddress() |
UserSession |
getSession() |
void |
sendData(RpcOutcomeListener<GeneralRPCProtos.Ack> listener,
QueryDataPackage data)
Send query data to client.
|
void |
sendResult(RpcOutcomeListener<GeneralRPCProtos.Ack> listener,
UserBitShared.QueryResult result)
Send query result outcome to client.
|
UserSession getSession()
void sendResult(RpcOutcomeListener<GeneralRPCProtos.Ack> listener, UserBitShared.QueryResult result)
listener
.listener
- The listenerresult
- The query result to be sentvoid sendData(RpcOutcomeListener<GeneralRPCProtos.Ack> listener, QueryDataPackage data)
listener
.listener
- The listenerdata
- The data to be sentio.netty.util.concurrent.Future<Void> getClosureFuture()
Future
which will be notified when this
channel is closed. This method always returns the same future instance.SocketAddress getRemoteAddress()
Copyright © 1970 The Apache Software Foundation. All rights reserved.