Interface ConnectionRequestBuilder

    • Method Detail

      • target

        RegisteredServer target()
        Returns the server that this connection request represents.
        Returns:
        the server this request will connect to
      • connect

        java.util.concurrent.CompletableFuture<ConnectionRequestBuilder.Result> connect()
        Initiates the connection to the remote server and emits a result on the CompletableFuture after the user has logged on. No messages will be communicated to the client: the user is responsible for all error handling.
        Returns:
        a CompletableFuture representing the status of this connection
      • connectWithIndication

        java.util.concurrent.CompletableFuture<java.lang.Boolean> connectWithIndication()
        Initiates the connection to the remote server and emits a result on the CompletableFuture after the user has logged on. Velocity's own built-in handling will be used to provide errors to the client.
        Returns:
        a CompletableFuture representing the status of this connection
      • fireAndForget

        void fireAndForget()
        Initiates the connection to the remote server without waiting for a result. Velocity will use generic error handling code to notify the user.