Package de.hybris.platform.task.impl
Class RepollEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- de.hybris.platform.servicelayer.event.events.AbstractEvent
-
- de.hybris.platform.task.impl.RepollEvent
-
- All Implemented Interfaces:
ClusterAwareEvent,TransactionAwareEvent,java.io.Serializable
public class RepollEvent extends AbstractEvent implements TransactionAwareEvent, ClusterAwareEvent
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RepollEvent(java.lang.Integer nodeId, java.lang.String nodeGroupId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetId()Always returnsthis.java.lang.StringgetNodeGroupId()java.lang.IntegergetNodeId()booleanpublish(int sourceNodeId, int targetNodeId)Always returnstrue(publish to all nodes).booleanpublishOnCommitOnly()Always returnstrue(on commit only).-
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
canPublish
-
-
-
-
Method Detail
-
publish
public boolean publish(int sourceNodeId, int targetNodeId)Always returnstrue(publish to all nodes).- Specified by:
publishin interfaceClusterAwareEvent- Returns:
trueif event should be published from source cluster node to target cluster node- See Also:
ClusterAwareEvent.publish(int, int)
-
getNodeGroupId
public java.lang.String getNodeGroupId()
-
getNodeId
public java.lang.Integer getNodeId()
-
getId
public java.lang.Object getId()
Always returnsthis.- Specified by:
getIdin interfaceTransactionAwareEvent- Returns:
- the id
- See Also:
TransactionAwareEvent.getId()
-
publishOnCommitOnly
public boolean publishOnCommitOnly()
Always returnstrue(on commit only).- Specified by:
publishOnCommitOnlyin interfaceTransactionAwareEvent- See Also:
TransactionAwareEvent.publishOnCommitOnly()
-
-