public interface StompClient
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the client.
|
StompClient |
connect(Handler<AsyncResult<StompClientConnection>> resultHandler)
Connects to the server using the host and port configured in the client's options.
|
StompClient |
connect(int port,
String host,
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(NetClient net,
Handler<AsyncResult<StompClientConnection>> resultHandler)
Connects to the server.
|
static StompClient |
create(Vertx vertx)
Creates a
StompClient using the default implementation. |
static StompClient |
create(Vertx vertx,
StompClientOptions options)
Creates a
StompClient using the default implementation. |
StompClientOptions |
options() |
Vertx |
vertx() |
static StompClient create(Vertx vertx)
StompClient
using the default implementation.vertx
- the vert.x instance to useStompClient
static StompClient create(Vertx vertx, StompClientOptions options)
StompClient
using the default implementation.vertx
- the vert.x instance to useoptions
- the optionsStompClient
StompClient connect(int port, String host, Handler<AsyncResult<StompClientConnection>> resultHandler)
port
- the server porthost
- the server hostresultHandler
- handler called with the connection resultStompClient
StompClient connect(NetClient net, Handler<AsyncResult<StompClientConnection>> resultHandler)
net
- the NET client to useresultHandler
- handler called with the connection resultStompClient
StompClient connect(int port, String host, NetClient net, Handler<AsyncResult<StompClientConnection>> resultHandler)
port
- the server porthost
- the server hostnet
- the NET client to useresultHandler
- handler called with the connection resultStompClient
StompClient connect(Handler<AsyncResult<StompClientConnection>> resultHandler)
resultHandler
- handler called with the connection resultStompClient
void close()
StompClientOptions options()
Vertx vertx()
Copyright © 2015. All rights reserved.