Package org.apache.drill.exec.rpc
Class ConnectionMultiListener<T extends com.google.protobuf.Internal.EnumLite,CC extends ClientConnection,HS extends com.google.protobuf.MessageLite,HR extends com.google.protobuf.MessageLite,BC extends BasicClient<T,CC,HS,HR>>
java.lang.Object
org.apache.drill.exec.rpc.ConnectionMultiListener<T,CC,HS,HR,BC>
- Type Parameters:
CC
- Client Connection ListenerHS
- Outbound handshake message typeHR
- Inbound handshake message typeBC
- BasicClient typeImplements a wrapper class that allows a client connection to associate different behaviours after establishing a connection with the server. The client can choose to send an application handshake, or in the case of SSL, wait for a SSL handshake completion and then send an application handshake.
public class ConnectionMultiListener<T extends com.google.protobuf.Internal.EnumLite,CC extends ClientConnection,HS extends com.google.protobuf.MessageLite,HR extends com.google.protobuf.MessageLite,BC extends BasicClient<T,CC,HS,HR>>
extends Object
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ConnectionMultiListener.Builder<T extends com.google.protobuf.Internal.EnumLite,
CC extends ClientConnection, HS extends com.google.protobuf.MessageLite, HR extends com.google.protobuf.MessageLite, BC extends BasicClient<T, CC, HS, HR>> static class
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends com.google.protobuf.Internal.EnumLite,
CC extends ClientConnection, HS extends com.google.protobuf.MessageLite, HR extends com.google.protobuf.MessageLite, BC extends BasicClient<T, CC, HS, HR>>
ConnectionMultiListener.Builder<T,CC, HS, HR, BC> newBuilder
(RpcConnectionHandler<CC> connectionListener, HS handshakeValue, BC basicClient)
-
Method Details
-
newBuilder
public static <T extends com.google.protobuf.Internal.EnumLite,CC extends ClientConnection, ConnectionMultiListener.Builder<T,HS extends com.google.protobuf.MessageLite, HR extends com.google.protobuf.MessageLite, BC extends BasicClient<T, CC, HS, HR>> CC, newBuilderHS, HR, BC> (RpcConnectionHandler<CC> connectionListener, HS handshakeValue, BC basicClient)
-