Add convenience connectWithIndication() method.

This commit is contained in:
Andrew Steinborn
2018-10-21 17:49:51 -04:00
parent 8d97e98920
commit 3bd48dec99
2 changed files with 16 additions and 3 deletions

View File

@@ -24,6 +24,13 @@ public interface ConnectionRequestBuilder {
*/
CompletableFuture<Result> connect();
/**
* Initiates the connection to the remote server and emits a result on the {@link CompletableFuture} after the user
* has logged on. Velocity's own built-in handling will be used to provide errors to the client.
* @return a {@link CompletableFuture} representing the status of this connection
*/
CompletableFuture<Boolean> connectWithIndication();
/**
* Initiates the connection to the remote server without waiting for a result. Velocity will use generic error
* handling code to notify the user.