Interface GatewayRetriever<T extends org.apache.flink.runtime.rpc.RpcGateway>
- Type Parameters:
T- type of the object to retrieve
- All Known Implementing Classes:
LeaderGatewayRetriever,RpcGatewayRetriever
public interface GatewayRetriever<T extends org.apache.flink.runtime.rpc.RpcGateway>
Generic retriever interface for
RpcGateway.-
Method Summary
-
Method Details
-
getFuture
CompletableFuture<T> getFuture()Get future of object to retrieve.- Returns:
- Future object to retrieve
-
getNow
Returns the currently retrieved gateway if there is such an object. Otherwise it returns an empty optional.- Returns:
- Optional object to retrieve
-