Class ProductConfigurationCacheInvalidationEvent

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

public class ProductConfigurationCacheInvalidationEvent extends AbstractEvent implements ClusterAwareEvent
Event indicates that the cached configuration state shall be discarded cluster wide.
See Also:
  • Constructor Details

    • ProductConfigurationCacheInvalidationEvent

      public ProductConfigurationCacheInvalidationEvent(String configid, Map<String,String> contextAttributes)
      Default constructor.
      Parameters:
      cacheKeyComponents - cache key components require to build a valid cache key
      configId - to be discarded
    • ProductConfigurationCacheInvalidationEvent

      public ProductConfigurationCacheInvalidationEvent(String configid)
      Default constructor.
      Parameters:
      configId - to be discarded
  • Method Details

    • getConfigId

      public String getConfigId()
    • canPublish

      public boolean canPublish(PublishEventContext publishEventContext)
      Description copied from interface: ClusterAwareEvent
      Decide whether this event should be broadcasted/received.
      Specified by:
      canPublish in interface ClusterAwareEvent
      Parameters:
      publishEventContext - context object containing all necessary information about target and source node Id's as well as target node groups.
      Returns:
      true if event should be published from source cluster node to target cluster node
    • getContextAttributes

      public Map<String,String> getContextAttributes()