Class AbstractEvent

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      EventScope getScope()  
      java.lang.Object getSource()  
      boolean isFromCluster()  
      void setFromCluster​(boolean fromCluster)
      If the Event is send by a cluster system (tcp message or udp packet is a hint) this method sets the internal variable to true.
      void setScope​(EventScope scope)
      Sets the EventScope for this event.
      java.lang.String toString()  
      • Methods inherited from class org.springframework.context.ApplicationEvent

        getTimestamp
      • Methods inherited from class java.lang.Object

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

      • AbstractEvent

        public AbstractEvent()
      • AbstractEvent

        public AbstractEvent​(java.io.Serializable source)
    • Method Detail

      • getSource

        public java.lang.Object getSource()
        Overrides:
        getSource in class java.util.EventObject
        Returns:
        the object on which the Event initially occurred.
      • setScope

        public void setScope​(EventScope scope)
        Sets the EventScope for this event.
        Parameters:
        scope - the EventScope to be set
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.EventObject
      • isFromCluster

        public boolean isFromCluster()
        Returns:
        true if event is from a cluster system. Returns as default false (no cluster system).
      • setFromCluster

        public void setFromCluster​(boolean fromCluster)
        If the Event is send by a cluster system (tcp message or udp packet is a hint) this method sets the internal variable to true.
        Parameters:
        fromCluster - default value is false, event is not from a cluster system