Class StompServerConnection


  • public class StompServerConnection
    extends Object
    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.

    • Constructor Detail

      • StompServerConnection

        public StompServerConnection​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • server

        public StompServer server()
        Returns:
        the STOMP server serving this connection.
      • handler

        public StompServerHandler handler()
        Returns:
        the STOMP server handler dealing with this connection
      • session

        public String 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 only EOL.
      • 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

        public void configureHeartbeat​(long ping,
                                       long pong,
                                       Handler<StompServerConnection> pingHandler)
        Configures the heartbeat.
        Parameters:
        ping - ping time
        pong - pong time
        pingHandler - the ping handler
      • sslSession

        public SSLSession sslSession()
        Returns:
        SSLSession associated with the underlying socket. Returns null if connection is not SSL.