public class CopycatMessageServiceClientHandler extends CopycatMessageServerGrpc.CopycatMessageServerImplBase
CopycatGrpcTransport
.Constructor and Description |
---|
CopycatMessageServiceClientHandler(io.atomix.catalyst.transport.Address serverAddress,
java.util.function.Consumer<io.atomix.catalyst.transport.Connection> listener,
io.atomix.catalyst.concurrent.ThreadContext context,
ExecutorService executor,
long requestTimeoutMs) |
Modifier and Type | Method and Description |
---|---|
io.grpc.stub.StreamObserver<CopycatMessage> |
connect(io.grpc.stub.StreamObserver<CopycatMessage> responseObserver)
RPC for establishing bi-di stream between client/server.
|
bindService
public CopycatMessageServiceClientHandler(io.atomix.catalyst.transport.Address serverAddress, java.util.function.Consumer<io.atomix.catalyst.transport.Connection> listener, io.atomix.catalyst.concurrent.ThreadContext context, ExecutorService executor, long requestTimeoutMs)
serverAddress
- server addresslistener
- listener for incoming connectionscontext
- copycat thread contextexecutor
- transport executorrequestTimeoutMs
- request timeout value for new connectionspublic io.grpc.stub.StreamObserver<CopycatMessage> connect(io.grpc.stub.StreamObserver<CopycatMessage> responseObserver)
connect
in class CopycatMessageServerGrpc.CopycatMessageServerImplBase
responseObserver
- client's stream observerCopyright © 2023. All Rights Reserved.