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
(e.g. WebSocket session).
Relies on a thread-bound SimpAttributes
instance exported by
SimpAnnotationMethodMessageHandler
.
- Since:
- 4.1
- Author:
- Rossen Stoyanchev
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerDestructionCallback
(String name, Runnable callback)
-
Constructor Details
-
SimpSessionScope
public SimpSessionScope()
-
-
Method Details
-
get
- Specified by:
get
in interfaceorg.springframework.beans.factory.config.Scope
-
remove
- Specified by:
remove
in interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
- Specified by:
registerDestructionCallback
in interfaceorg.springframework.beans.factory.config.Scope
-
resolveContextualObject
- Specified by:
resolveContextualObject
in interfaceorg.springframework.beans.factory.config.Scope
-
getConversationId
- Specified by:
getConversationId
in interfaceorg.springframework.beans.factory.config.Scope
-