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,
org.apache.flink.api.common.time.Time retryDelay) |
| Modifier and Type | Method and Description |
|---|---|
protected CompletableFuture<T> |
createGateway(CompletableFuture<org.apache.flink.api.java.tuple.Tuple2<String,UUID>> leaderFuture) |
getFuture, notifyNewLeaderAddressgetLeaderFuture, getLeaderNow, handleError, notifyLeaderAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNowpublic RpcGatewayRetriever(RpcService rpcService, Class<T> gatewayType, java.util.function.Function<UUID,F> fencingTokenMapper, int retries, org.apache.flink.api.common.time.Time retryDelay)
protected CompletableFuture<T> createGateway(CompletableFuture<org.apache.flink.api.java.tuple.Tuple2<String,UUID>> leaderFuture)
createGateway in class LeaderGatewayRetriever<T extends FencedRpcGateway<F>>Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.