public class GrpcMessagingClient extends Object implements io.atomix.catalyst.transport.Client
Client
implementation based on Alluxio gRPC messaging.
Listen should be called once for each distinct address.
Pending futures should all be closed prior to calling close()
.Constructor and Description |
---|
GrpcMessagingClient(AlluxioConfiguration conf,
UserState userState,
ExecutorService executor,
String clientType)
Creates messaging client that can be used to connect to remote messaging servers.
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
close() |
CompletableFuture<io.atomix.catalyst.transport.Connection> |
connect(io.atomix.catalyst.transport.Address address) |
public GrpcMessagingClient(AlluxioConfiguration conf, UserState userState, ExecutorService executor, String clientType)
conf
- Alluxio configurationuserState
- authentication userexecutor
- messaging executorclientType
- transport client typepublic 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.