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() |
SSLSession |
sslSession() |
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
.StompServerConnection
StompServerConnection write(Buffer buffer)
buffer
- the bufferStompServerConnection
StompServer server()
SSLSession sslSession()
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 © 2023 Eclipse. All rights reserved.