Interface GatewayRetriever<T extends RpcGateway>
-
- Type Parameters:
T
- type of the object to retrieve
- All Known Implementing Classes:
LeaderGatewayRetriever
,RpcGatewayRetriever
public interface GatewayRetriever<T extends RpcGateway>
Generic retriever interface forRpcGateway
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CompletableFuture<T>
getFuture()
Get future of object to retrieve.default Optional<T>
getNow()
Returns the currently retrieved gateway if there is such an object.
-
-
-
Method Detail
-
getFuture
CompletableFuture<T> getFuture()
Get future of object to retrieve.- Returns:
- Future object to retrieve
-
-