Class StompServerConnection
java.lang.Object
io.vertx.reactivex.ext.stomp.StompServerConnection
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
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.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStompServerConnection(StompServerConnection delegate) StompServerConnection(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the connection with the client.voidconfigureHeartbeat(long ping, long pong, Handler<StompServerConnection> pingHandler) Configures the heartbeat.booleanhandler()inthashCode()static StompServerConnectionvoidNotifies the connection about server activity (the server has sent a frame).voidping()Sends a `PING` frame to the client.server()session()toString()Writes the given buffer to the socket.Writes the given frame to the socket.
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
StompServerConnection
-
StompServerConnection
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
write
Writes the given frame to the socket.- Parameters:
frame- the frame, must not benull.- Returns:
- the current
StompServerConnection
-
write
Writes the given buffer to the socket. This is a low level API that should be used carefully.- Parameters:
buffer- the buffer- Returns:
- the current
StompServerConnection
-
server
- Returns:
- the STOMP server serving this connection.
-
handler
- Returns:
- the STOMP server handler dealing with this connection
-
session
- Returns:
- the STOMP session id computed when the client has established the connection to the server
-
close
public void close()Closes the connection with the client. -
ping
public void ping()Sends a `PING` frame to the client. A `PING` frame is a frame containing onlyEOL. -
onServerActivity
public void onServerActivity()Notifies the connection about server activity (the server has sent a frame). This method is used to handle the heartbeat. -
configureHeartbeat
Configures the heartbeat.- Parameters:
ping- ping timepong- pong timepingHandler- the ping handler
-
sslSession
- Returns:
- SSLSession associated with the underlying socket. Returns null if connection is not SSL.
-
newInstance
-