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,
java.util.function.Function<UUID,F> fencingTokenMapper,
int retries,
Time retryDelay) |
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, java.util.function.Function<UUID,F> fencingTokenMapper, int retries, Time retryDelay)
protected CompletableFuture<T> createGateway(CompletableFuture<Tuple2<String,UUID>> leaderFuture)
createGateway
in class LeaderGatewayRetriever<T extends FencedRpcGateway<F>>
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.