Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<StompClient> |
__TYPE_ARG |
Constructor and Description |
---|
StompClient(Object delegate) |
StompClient(StompClient delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the client.
|
Single<StompClientConnection> |
connect()
Connects to the server using the host and port configured in the client's options.
|
Single<StompClientConnection> |
connect(int port,
String host)
Connects to the server.
|
Single<StompClientConnection> |
connect(int port,
String host,
NetClient net)
Connects to the server.
|
Single<StompClientConnection> |
connect(NetClient net)
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. |
boolean |
equals(Object o) |
StompClient |
errorFrameHandler(Handler<Frame> handler)
A general error frame handler.
|
StompClient |
exceptionHandler(Handler<Throwable> handler)
Sets an exception handler notified for TCP-level errors.
|
StompClient |
getDelegate() |
int |
hashCode() |
boolean |
isClosed() |
static StompClient |
newInstance(StompClient arg) |
StompClientOptions |
options() |
StompClient |
receivedFrameHandler(Handler<Frame> handler)
Configures a received handler that gets notified when a STOMP frame is received by the client.
|
Single<StompClientConnection> |
rxConnect()
Connects to the server using the host and port configured in the client's options.
|
Single<StompClientConnection> |
rxConnect(int port,
String host)
Connects to the server.
|
Single<StompClientConnection> |
rxConnect(int port,
String host,
NetClient net)
Connects to the server.
|
Single<StompClientConnection> |
rxConnect(NetClient net)
Connects to the server.
|
String |
toString() |
Vertx |
vertx() |
StompClient |
writingFrameHandler(Handler<Frame> handler)
Configures a writing handler that gets notified when a STOMP frame is written on the wire.
|
public static final io.vertx.lang.rx.TypeArg<StompClient> __TYPE_ARG
public StompClient(StompClient delegate)
public StompClient(Object delegate)
public StompClient getDelegate()
public static StompClient create(Vertx vertx)
StompClient
using the default implementation.vertx
- the vert.x instance to useStompClient
public static StompClient create(Vertx vertx, StompClientOptions options)
StompClient
using the default implementation.vertx
- the vert.x instance to useoptions
- the optionsStompClient
public Single<StompClientConnection> connect(int port, String host)
port
- the server porthost
- the server hostStompClient
public Single<StompClientConnection> rxConnect(int port, String host)
port
- the server porthost
- the server hostStompClient
public Single<StompClientConnection> connect(NetClient net)
net
- the NET client to useStompClient
public Single<StompClientConnection> rxConnect(NetClient net)
net
- the NET client to useStompClient
public Single<StompClientConnection> connect(int port, String host, NetClient net)
port
- the server porthost
- the server hostnet
- the NET client to useStompClient
public Single<StompClientConnection> rxConnect(int port, String host, NetClient net)
port
- the server porthost
- the server hostnet
- the NET client to useStompClient
public Single<StompClientConnection> connect()
StompClient
public Single<StompClientConnection> rxConnect()
StompClient
public StompClient receivedFrameHandler(Handler<Frame> handler)
When a connection is created, the handler is used as
StompClientConnection.receivedFrameHandler(io.vertx.core.Handler<io.vertx.ext.stomp.Frame>)
.
handler
- the handlerStompClient
public StompClient writingFrameHandler(Handler<Frame> handler)
When a connection is created, the handler is used as
StompClientConnection.writingFrameHandler(io.vertx.core.Handler<io.vertx.ext.stomp.Frame>)
.
handler
- the handlerStompClient
public StompClient errorFrameHandler(Handler<Frame> handler)
ERROR
frame emitted during the connection process
(wrong authentication). This error handler will be pass to all StompClientConnection
created from this
client. Obviously, the client can override it when the connection is established.handler
- the handlerStompClient
public StompClient exceptionHandler(Handler<Throwable> handler)
handler
- the handlerStompClient
public void close()
public StompClientOptions options()
public Vertx vertx()
public boolean isClosed()
public static StompClient newInstance(StompClient arg)
Copyright © 2024 Eclipse. All rights reserved.