Class InvalidateCharonCacheEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- de.hybris.platform.servicelayer.event.events.AbstractEvent
-
- de.hybris.platform.apiregistryservices.event.InvalidateCharonCacheEvent
-
- All Implemented Interfaces:
ClusterAwareEvent,java.io.Serializable
public class InvalidateCharonCacheEvent extends AbstractEvent implements ClusterAwareEvent
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidateCharonCacheEvent(java.lang.String cacheKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanPublish(PublishEventContext publishEventContext)Decide whether this event should be broadcasted/received.java.lang.StringgetCacheKey()protected voidsetCacheKey(java.lang.String cacheKey)-
Methods inherited from class de.hybris.platform.servicelayer.event.events.AbstractEvent
getScope, getSource, isFromCluster, setFromCluster, setScope, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.servicelayer.event.ClusterAwareEvent
publish
-
-
-
-
Method Detail
-
canPublish
public boolean canPublish(PublishEventContext publishEventContext)
Description copied from interface:ClusterAwareEventDecide whether this event should be broadcasted/received.- Specified by:
canPublishin interfaceClusterAwareEvent- Parameters:
publishEventContext- context object containing all necessary information about target and source node Id's as well as target node groups.- Returns:
trueif event should be published from source cluster node to target cluster node
-
getCacheKey
public java.lang.String getCacheKey()
-
setCacheKey
protected void setCacheKey(java.lang.String cacheKey)
-
-