Class AbstractSyncEvent<T extends AbstractEvent>

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractSyncEvent​(T syncEvent)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      T getSyncEvent()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      boolean publish​(int sourceNodeId, int targetNodeId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Decide whether this event should be broadcasted/received.
      • 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

      • AbstractSyncEvent

        public AbstractSyncEvent​(T syncEvent)
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • getSyncEvent

        public T getSyncEvent()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • publish

        public boolean publish​(int sourceNodeId,
                               int targetNodeId)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: ClusterAwareEvent
        Decide whether this event should be broadcasted/received. Examples are
        • return (sourceNodeId==targetNodeId ); => will only publish to local cluster
        • return true; => will publish to all nodes
        • return (targetNodeId==14); => publish to dedicated node regardless of source
        Specified by:
        publish in interface ClusterAwareEvent
        Returns:
        true if event should be published from source cluster node to target cluster node