public abstract class AbstractSessionMessage extends InternalMessage
InternalMessage
implementations which carry relate to some
Session
bound event.
These messages are not thread-safe
and so will be called within the same Thread
as the publisher. This
means listeners
have a chance to throw an
exception and cancel the related event.SessionManager
,
Serialized FormthreadSafe
source
Constructor and Description |
---|
AbstractSessionMessage(Object source,
String sessionId) |
Modifier and Type | Method and Description |
---|---|
String |
getSessionId() |
boolean |
isThreadSafe()
Returns true if this message can safely be passed to another
Thread . |
getSource, toString
public String getSessionId()
public final boolean isThreadSafe()
InternalMessage
Thread
. The default ApplicationEventMulticaster
executes
in the same Thread
.isThreadSafe
in class InternalMessage
Version: 5.2.4-ice35-b23
Copyright © 2016 The University of Dundee & Open Microscopy Environment. All Rights Reserved.