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
Constructor and Description |
---|
AbstractSessionMessage(java.lang.Object source,
java.lang.String sessionId) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSessionId() |
boolean |
isThreadSafe()
Returns true if this message can safely be passed to another
Thread . |
public AbstractSessionMessage(java.lang.Object source, java.lang.String sessionId)
public java.lang.String getSessionId()
public final boolean isThreadSafe()
InternalMessage
Thread
. The default ApplicationEventMulticaster
executes
in the same Thread
.isThreadSafe
in class InternalMessage
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.