Class AbstractSyncEvent<T extends AbstractEvent>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
de.hybris.platform.servicelayer.event.events.AbstractEvent
com.hybris.backoffice.events.sync.AbstractSyncEvent<T>
- All Implemented Interfaces:
ClusterAwareEvent,Serializable
- Direct Known Subclasses:
SyncFinishedEvent,SyncStartEvent
@Deprecated(since="6.6",
forRemoval=true)
public class AbstractSyncEvent<T extends AbstractEvent>
extends AbstractEvent
implements ClusterAwareEvent
Deprecated, for removal: This API element is subject to removal in a future version.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractSyncEvent(T syncEvent) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.booleanpublish(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 de.hybris.platform.servicelayer.event.events.AbstractEvent
getScope, getSource, isFromCluster, setFromCluster, setScope, toStringMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.hybris.platform.servicelayer.event.ClusterAwareEvent
canPublish
-
Constructor Details
-
AbstractSyncEvent
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
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:ClusterAwareEventDecide whether this event should be broadcasted/received. Examples arereturn (sourceNodeId==targetNodeId );=> will only publish to local clusterreturn true;=> will publish to all nodesreturn (targetNodeId==14);=> publish to dedicated node regardless of source
- Specified by:
publishin interfaceClusterAwareEvent- Returns:
trueif event should be published from source cluster node to target cluster node
-
AbstractProcessEventinstead.