public interface StompServerConnection
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection with the client.
|
void |
configureHeartbeat(long ping,
long pong,
Handler<StompServerConnection> pingHandler)
Configures the heartbeat.
|
StompServerHandler |
handler() |
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() |
String |
session() |
StompServerConnection |
write(Buffer buffer)
Writes the given buffer to the socket.
|
StompServerConnection |
write(Frame frame)
Writes the given frame to the socket.
|
StompServerConnection write(Frame frame)
frame - the frame, must not be null.StompServerConnectionStompServerConnection write(Buffer buffer)
buffer - the bufferStompServerConnectionStompServer server()
StompServerHandler handler()
String session()
void close()
void ping()
EOL.void onServerActivity()
void configureHeartbeat(long ping,
long pong,
Handler<StompServerConnection> pingHandler)
ping - ping timepong - pong timepingHandler - the ping handlerCopyright © 2015. All rights reserved.