F - type of the fencing tokenT - type of the fenced gateway to retrievepublic class RpcGatewayRetriever<F extends Serializable,T extends org.apache.flink.runtime.rpc.FencedRpcGateway<F>> extends LeaderGatewayRetriever<T>
LeaderGatewayRetriever implementation using the RpcService.log| 构造器和说明 |
|---|
RpcGatewayRetriever(org.apache.flink.runtime.rpc.RpcService rpcService,
Class<T> gatewayType,
java.util.function.Function<UUID,F> fencingTokenMapper,
org.apache.flink.util.concurrent.RetryStrategy retryStrategy) |
| 限定符和类型 | 方法和说明 |
|---|---|
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(org.apache.flink.runtime.rpc.RpcService rpcService,
Class<T> gatewayType,
java.util.function.Function<UUID,F> fencingTokenMapper,
org.apache.flink.util.concurrent.RetryStrategy retryStrategy)
protected CompletableFuture<T> createGateway(CompletableFuture<org.apache.flink.api.java.tuple.Tuple2<String,UUID>> leaderFuture)
createGateway 在类中 LeaderGatewayRetriever<T extends org.apache.flink.runtime.rpc.FencedRpcGateway<F>>Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.