Defines a STOMP client.
| Constructor and description |
|---|
StompClient
(Object delegate) |
| Type | Name and description |
|---|---|
void |
close()Closes the client. |
StompClient |
connect(int port, String host, Handler<AsyncResult<StompClientConnection>> resultHandler)Connects to the server. |
StompClient |
connect(NetClient net, Handler<AsyncResult<StompClientConnection>> resultHandler)Connects to the server. |
StompClient |
connect(int port, String host, NetClient net, Handler<AsyncResult<StompClientConnection>> resultHandler)Connects to the server. |
StompClient |
connect(Handler<AsyncResult<StompClientConnection>> resultHandler)Connects to the server using the host and port configured in the client's options. |
static StompClient |
create(Vertx vertx)Creates a StompClient using the default implementation. |
static StompClient |
create(Vertx vertx, Map<String, Object> options)Creates a StompClient using the default implementation. |
Object |
getDelegate() |
Map<String, Object> |
options()@return the client's options. |
Vertx |
vertx()
|
Closes the client.
Connects to the server.
port - the server porthost - the server hostresultHandler - handler called with the connection resultConnects to the server.
net - the NET client to useresultHandler - handler called with the connection resultConnects to the server.
port - the server porthost - the server hostnet - the NET client to useresultHandler - handler called with the connection resultConnects to the server using the host and port configured in the client's options.
resultHandler - handler called with the connection resultCreates a StompClient using the default implementation.
vertx - the vert.x instance to useCreates a StompClient using the default implementation.
vertx - the vert.x instance to useoptions - the options (see StompClientOptions)
io.vertx:vertx-stomp:3.1.0