Class AbstractSessionMessage

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    CreateSessionMessage, DestroySessionMessage

    public abstract class AbstractSessionMessage
    extends ome.util.messages.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.
    See Also:
    SessionManager, Serialized Form
    • Field Summary

      • Fields inherited from class ome.util.messages.InternalMessage

        threadSafe
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractSessionMessage​(java.lang.Object source, java.lang.String sessionId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getSessionId()  
      boolean isThreadSafe()  
      • Methods inherited from class org.springframework.context.ApplicationEvent

        getTimestamp
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractSessionMessage

        public AbstractSessionMessage​(java.lang.Object source,
                                      java.lang.String sessionId)
    • Method Detail

      • getSessionId

        public java.lang.String getSessionId()
      • isThreadSafe

        public final boolean isThreadSafe()
        Overrides:
        isThreadSafe in class ome.util.messages.InternalMessage