public class GrpcMessagingClientConnection extends GrpcMessagingConnection
GrpcMessagingConnection
implementation for clients.GrpcMessagingConnection.ConnectionOwner, GrpcMessagingConnection.ContextualFuture<T>, GrpcMessagingConnection.HandlerHolder
Constructor and Description |
---|
GrpcMessagingClientConnection(GrpcMessagingContext context,
ExecutorService executor,
GrpcChannel channel,
long requestTimeoutMs)
Creates a messaging connection for client.
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
close()
Closes the connection.
|
handler, handler, handleResponseMessage, onClose, onCompleted, onError, onException, onNext, send, sendAndReceive, setTargetObserver, toString
public GrpcMessagingClientConnection(GrpcMessagingContext context, ExecutorService executor, GrpcChannel channel, long requestTimeoutMs)
GrpcMessagingConnection.setTargetObserver(io.grpc.stub.StreamObserver<alluxio.grpc.TransportMessage>)
should be called explicitly before using the connection.context
- catalyst thread contextexecutor
- transport executorchannel
- underlying gRPC channelrequestTimeoutMs
- timeout in milliseconds for requestspublic CompletableFuture<Void> close()
GrpcMessagingConnection
close
in class GrpcMessagingConnection
Copyright © 2023. All Rights Reserved.