public class CopycatGrpcServerConnection extends CopycatGrpcConnection
CopycatGrpcConnection
implementation for server.CopycatGrpcConnection.ConnectionOwner, CopycatGrpcConnection.ContextualFuture<T>, CopycatGrpcConnection.HandlerHolder
Constructor and Description |
---|
CopycatGrpcServerConnection(String transportId,
io.atomix.catalyst.concurrent.ThreadContext context,
ExecutorService executor,
long requestTimeoutMs)
Creates a connection object for server.
|
close, handler, handler, handleResponseMessage, onClose, onCompleted, onError, onException, onNext, send, sendAndReceive, setTargetObserver, toString
public CopycatGrpcServerConnection(String transportId, io.atomix.catalyst.concurrent.ThreadContext context, ExecutorService executor, long requestTimeoutMs)
CopycatGrpcConnection.setTargetObserver(io.grpc.stub.StreamObserver<alluxio.grpc.CopycatMessage>)
should be called explicitly before using the connection.transportId
- transport Id for this connectioncontext
- copycat thread contextexecutor
- transport executorrequestTimeoutMs
- timeout in milliseconds for requestsCopyright © 2023. All Rights Reserved.