abstract class SimpAttributesContextHolder
Holder class to expose SiMP attributes associated with a session (e.g. WebSocket) in the form of a thread-bound SimpAttributes object.
Author
Rossen Stoyanchev
Since
4.1
SimpAttributesContextHolder()
Holder class to expose SiMP attributes associated with a session (e.g. WebSocket) in the form of a thread-bound SimpAttributes object. |
open static fun currentAttributes(): SimpAttributes
Return the SimpAttributes currently bound to the thread or raise an java.lang.IllegalStateException if none are bound.. |
|
open static fun getAttributes(): SimpAttributes
Return the SimpAttributes currently bound to the thread. |
|
open static fun resetAttributes(): Unit
Reset the SimpAttributes for the current thread. |
|
open static fun setAttributes(attributes: SimpAttributes): Unit
Bind the given SimpAttributes to the current thread, |
|
open static fun setAttributesFromMessage(message: Message<*>): Unit
Extract the SiMP session attributes from the given message, wrap them in a SimpAttributes instance and bind it to the current thread, |