class StompServerConnection extends AnyRef
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.
- Alphabetic
- By Inheritance
- StompServerConnection
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new StompServerConnection(_asJava: AnyRef)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJava: AnyRef
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close(): Unit
Closes the connection with the client.
-
def
configureHeartbeat(ping: Long, pong: Long, pingHandler: Handler[StompServerConnection]): Unit
Configures the heartbeat.
Configures the heartbeat. * @param ping ping time
- pong
pong time
- pingHandler
the ping handler
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
handler(): StompServerHandler
- returns
the STOMP server handler dealing with this connection
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
onServerActivity(): Unit
Notifies the connection about server activity (the server has sent a frame).
Notifies the connection about server activity (the server has sent a frame). This method is used to handle the heartbeat.
-
def
ping(): Unit
Sends a
PING
frame to the client.Sends a
PING
frame to the client. APING
frame is a frame containing onlyEOL
. -
def
server(): StompServer
- returns
the STOMP server serving this connection.
-
def
session(): String
- returns
the STOMP session id computed when the client has established the connection to the server
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
write(buffer: Buffer): StompServerConnection
Writes the given buffer to the socket.
Writes the given buffer to the socket. This is a low level API that should be used carefully. * @param buffer the buffer
- returns
the current StompServerConnection
-
def
write(frame: Frame): StompServerConnection
Writes the given frame to the socket.
Writes the given frame to the socket. * @param frame the frame, must not be
null
. see Frame- returns
the current StompServerConnection