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

    Modifier and Type
    Method
    Description
    Get future of object to retrieve.
    default Optional<T>
    Returns the currently retrieved gateway if there is such an object.
  • Method Details

    • getFuture

      CompletableFuture<T> getFuture()
      Get future of object to retrieve.
      Returns:
      Future object to retrieve
    • getNow

      default Optional<T> getNow()
      Returns the currently retrieved gateway if there is such an object. Otherwise it returns an empty optional.
      Returns:
      Optional object to retrieve