Class SimpSessionScope
java.lang.Object
org.springframework.messaging.simp.SimpSessionScope
- All Implemented Interfaces:
org.springframework.beans.factory.config.Scope
public class SimpSessionScope
extends Object
implements org.springframework.beans.factory.config.Scope
A
Scope implementation exposing the attributes of a SiMP session
(for example, WebSocket session).
Relies on a thread-bound SimpAttributes instance exported by
SimpAnnotationMethodMessageHandler.
- Since:
- 4.1
- Author:
- Rossen Stoyanchev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterDestructionCallback(String name, Runnable callback)
-
Constructor Details
-
SimpSessionScope
public SimpSessionScope()
-
-
Method Details
-
get
- Specified by:
getin interfaceorg.springframework.beans.factory.config.Scope
-
remove
- Specified by:
removein interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
- Specified by:
registerDestructionCallbackin interfaceorg.springframework.beans.factory.config.Scope
-
resolveContextualObject
- Specified by:
resolveContextualObjectin interfaceorg.springframework.beans.factory.config.Scope
-
getConversationId
- Specified by:
getConversationIdin interfaceorg.springframework.beans.factory.config.Scope
-