Class representing a connection between a STOMP client a the server. It keeps a references on the client socket, so let write to this socket.
| Constructor and description |
|---|
StompServerConnection
(java.lang.Object delegate) |
| Type | Name and description |
|---|---|
void |
close()Closes the connection with the client. |
void |
configureHeartbeat(long ping, long pong, io.vertx.core.Handler<StompServerConnection> pingHandler)Configures the heartbeat. |
java.lang.Object |
getDelegate() |
StompServerHandler |
handler()@return
|
void |
onServerActivity()Notifies the connection about server activity (the server has sent a frame). |
void |
ping()Sends a `PING` frame to the client. |
StompServer |
server()
|
java.lang.String |
session()@return
|
StompServerConnection |
write(java.util.Map<java.lang.String, java.lang.Object> frame = [:])Writes the given frame to the socket. |
StompServerConnection |
write(Buffer buffer)Writes the given buffer to the socket. |
| 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 connection with the client.
Configures the heartbeat.
ping - ping timepong - pong timepingHandler - the ping handler
Notifies the connection about server activity (the server has sent a frame). This method is used to handle the heartbeat.
Sends a `PING` frame to the client. A `PING` frame is a frame containing only EOL.
Writes the given frame to the socket.
frame - the frame, must not be null. (see Frame)Writes the given buffer to the socket. This is a low level API that should be used carefully.
buffer - the buffer