Class AfterTenantRestartClusterAwareEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
de.hybris.platform.servicelayer.event.events.AbstractEvent
de.hybris.platform.servicelayer.event.events.AfterTenantRestartClusterAwareEvent
All Implemented Interfaces:
ClusterAwareEvent, Serializable

public class AfterTenantRestartClusterAwareEvent extends AbstractEvent implements ClusterAwareEvent
See Also:
  • Constructor Details

    • AfterTenantRestartClusterAwareEvent

      public AfterTenantRestartClusterAwareEvent(Tenant tenant)
  • Method Details

    • publish

      public boolean publish(int sourceNodeId, int targetNodeId)
      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
    • getTenantId

      public String getTenantId()