spring-framework / org.springframework.messaging.simp / SimpSessionScope

SimpSessionScope

open class SimpSessionScope : Scope

A Scope implementation exposing the attributes of a SiMP session (e.g. WebSocket session).

Relies on a thread-bound SimpAttributes instance exported by org.springframework.messaging.simp.annotation.support.SimpAnnotationMethodMessageHandler.

Author
Rossen Stoyanchev

Since
4.1

Constructors

<init>

SimpSessionScope()

A Scope implementation exposing the attributes of a SiMP session (e.g. WebSocket session).

Relies on a thread-bound SimpAttributes instance exported by org.springframework.messaging.simp.annotation.support.SimpAnnotationMethodMessageHandler.

Functions

get

open fun get(name: String, objectFactory: ObjectFactory<*>): Any

getConversationId

open fun getConversationId(): String

registerDestructionCallback

open fun registerDestructionCallback(name: String, callback: Runnable): Unit

remove

open fun remove(name: String): Any

resolveContextualObject

open fun resolveContextualObject(key: String): Any