F
- type of the fencing tokenT
- type of the fenced gateway to retrievepublic class RpcGatewayRetriever<F extends Serializable,T extends FencedRpcGateway<F>> extends LeaderGatewayRetriever<T>
LeaderGatewayRetriever
implementation using the RpcService
.log
Constructor and Description |
---|
RpcGatewayRetriever(RpcService rpcService,
Class<T> gatewayType,
Function<UUID,F> fencingTokenMapper,
RetryStrategy retryStrategy) |
Modifier and Type | Method and Description |
---|---|
protected CompletableFuture<T> |
createGateway(CompletableFuture<Tuple2<String,UUID>> leaderFuture) |
getFuture, notifyNewLeaderAddress
getLeaderFuture, getLeaderNow, handleError, notifyLeaderAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNow
public RpcGatewayRetriever(RpcService rpcService, Class<T> gatewayType, Function<UUID,F> fencingTokenMapper, RetryStrategy retryStrategy)
protected CompletableFuture<T> createGateway(CompletableFuture<Tuple2<String,UUID>> leaderFuture)
createGateway
in class LeaderGatewayRetriever<T extends FencedRpcGateway<F>>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.