public class CopycatGrpcClient extends Object implements io.atomix.catalyst.transport.Client
Client
implementation that uses Alluxio gRPC.
Copycat guarantees that listen will be called once for each distinct address.
It also guarantees pending futures will all be closed prior to calling close.Constructor and Description |
---|
CopycatGrpcClient(AlluxioConfiguration conf,
UserState userState,
ExecutorService executor)
Creates copycat transport client that can be used to connect to remote copycat servers.
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
close() |
CompletableFuture<io.atomix.catalyst.transport.Connection> |
connect(io.atomix.catalyst.transport.Address address) |
public CopycatGrpcClient(AlluxioConfiguration conf, UserState userState, ExecutorService executor)
conf
- Alluxio configurationuserState
- authentication userexecutor
- transport executorpublic CompletableFuture<io.atomix.catalyst.transport.Connection> connect(io.atomix.catalyst.transport.Address address)
connect
in interface io.atomix.catalyst.transport.Client
public CompletableFuture<Void> close()
close
in interface io.atomix.catalyst.transport.Client
Copyright © 2023. All Rights Reserved.