本文整理汇总了Java中org.apache.drill.exec.rpc.BasicClientWithConnection.ServerConnection类的典型用法代码示例。如果您正苦于以下问题:Java ServerConnection类的具体用法?Java ServerConnection怎么用?Java ServerConnection使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ServerConnection类属于org.apache.drill.exec.rpc.BasicClientWithConnection包,在下文中一共展示了ServerConnection类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handle
import org.apache.drill.exec.rpc.BasicClientWithConnection.ServerConnection; //导入依赖的package包/类
@Override
protected Response handle(ServerConnection connection, int rpcType, ByteBuf pBody, ByteBuf dBody) throws RpcException {
return handleReponse( (ConnectionThrottle) connection, rpcType, pBody, dBody);
}
示例2: initRemoteConnection
import org.apache.drill.exec.rpc.BasicClientWithConnection.ServerConnection; //导入依赖的package包/类
@Override
public ServerConnection initRemoteConnection(SocketChannel channel) {
super.initRemoteConnection(channel);
return new ServerConnection(connectionName, channel, alloc);
}
示例3: ServerConnection
import org.apache.drill.exec.rpc.BasicClientWithConnection.ServerConnection; //导入依赖的package包/类
public ServerConnection(String name, SocketChannel channel, BufferAllocator alloc) {
super(channel, name);
this.alloc = alloc;
}
示例4: connectionSucceeded
import org.apache.drill.exec.rpc.BasicClientWithConnection.ServerConnection; //导入依赖的package包/类
@Override
public void connectionSucceeded(ServerConnection connection) {
getInner().set(null);
}