public interface ProtonClient
Modifier and Type | Method and Description |
---|---|
void |
connect(ProtonClientOptions options,
String host,
int port,
Handler<AsyncResult<ProtonConnection>> connectionHandler)
Connect to the given host and port, without credentials.
|
void |
connect(ProtonClientOptions options,
String host,
int port,
String username,
String password,
Handler<AsyncResult<ProtonConnection>> connectionHandler)
Connect to the given host and port, with credentials (if required by server peer).
|
void |
connect(String host,
int port,
Handler<AsyncResult<ProtonConnection>> connectionHandler)
Connect to the given host and port, without credentials.
|
void |
connect(String host,
int port,
String username,
String password,
Handler<AsyncResult<ProtonConnection>> connectionHandler)
Connect to the given host and port, with credentials (if required by server peer).
|
static ProtonClient |
create(Vertx vertx)
Create a ProtonClient instance with the given Vertx instance.
|
static ProtonClient create(Vertx vertx)
vertx
- the vertx instance to usevoid connect(String host, int port, Handler<AsyncResult<ProtonConnection>> connectionHandler)
host
- the host to connect toport
- the port to connect toconnectionHandler
- handler that will process the result, giving either the (unopened) ProtonConnection or failure cause.void connect(String host, int port, String username, String password, Handler<AsyncResult<ProtonConnection>> connectionHandler)
host
- the host to connect toport
- the port to connect tousername
- the user name to use in any SASL negotiation that requires itpassword
- the password to use in any SASL negotiation that requires itconnectionHandler
- handler that will process the result, giving either the (unopened) ProtonConnection or failure cause.void connect(ProtonClientOptions options, String host, int port, Handler<AsyncResult<ProtonConnection>> connectionHandler)
options
- the options to applyhost
- the host to connect toport
- the port to connect toconnectionHandler
- handler that will process the result, giving either the (unopened) ProtonConnection or failure cause.void connect(ProtonClientOptions options, String host, int port, String username, String password, Handler<AsyncResult<ProtonConnection>> connectionHandler)
options
- the options to applyhost
- the host to connect toport
- the port to connect tousername
- the user name to use in any SASL negotiation that requires itpassword
- the password to use in any SASL negotiation that requires itconnectionHandler
- handler that will process the result, giving either the (unopened) ProtonConnection or failure cause.Copyright © 2020 Eclipse. All rights reserved.