Defines a STOMP client.
Constructor and description |
---|
StompClient
(java.lang.Object delegate) |
Type | Name and description |
---|---|
void |
close() Closes the client. |
StompClient |
connect(int port, java.lang.String host, io.vertx.core.Handler<io.vertx.core.AsyncResult<StompClientConnection>> resultHandler) Connects to the server. |
StompClient |
connect(io.vertx.groovy.core.net.NetClient net, io.vertx.core.Handler<io.vertx.core.AsyncResult<StompClientConnection>> resultHandler) Connects to the server. |
StompClient |
connect(int port, java.lang.String host, io.vertx.groovy.core.net.NetClient net, io.vertx.core.Handler<io.vertx.core.AsyncResult<StompClientConnection>> resultHandler) Connects to the server. |
StompClient |
connect(io.vertx.core.Handler<io.vertx.core.AsyncResult<StompClientConnection>> resultHandler) Connects to the server using the host and port configured in the client's options. |
static StompClient |
create(io.vertx.groovy.core.Vertx vertx) Creates a StompClient using the default implementation. |
static StompClient |
create(io.vertx.groovy.core.Vertx vertx, java.util.Map<java.lang.String, java.lang.Object> options) Creates a StompClient using the default implementation. |
java.lang.Object |
getDelegate() |
java.util.Map<java.lang.String, java.lang.Object> |
options() @return the client's options. |
io.vertx.groovy.core.Vertx |
vertx()
|
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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)