protected CompletableFuture < ? > ask ( Object message , Time timeout ) { return FutureUtils . toJava ( Patterns . ask ( rpcEndpoint , message , timeout . toMilliseconds ( ) ) ) ; }
Sends the message to the RPC endpoint and returns a future containing its response .