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
,java.io.Serializable
- Direct Known Subclasses:
SyncFinishedEvent
,SyncStartEvent
@Deprecated public class AbstractSyncEvent<T extends AbstractEvent> extends AbstractEvent implements ClusterAwareEvent
Deprecated.since 6.6, please use theAbstractProcessEvent
instead.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractSyncEvent(T syncEvent)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description T
getSyncEvent()
Deprecated.boolean
publish(int sourceNodeId, int targetNodeId)
Deprecated.Decide whether this event should be broadcasted/received.-
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
-
-
-
-
Constructor Detail
-
AbstractSyncEvent
public AbstractSyncEvent(T syncEvent)
Deprecated.
-
-
Method Detail
-
getSyncEvent
public T getSyncEvent()
Deprecated.
-
publish
public boolean publish(int sourceNodeId, int targetNodeId)
Deprecated.Description copied from interface:ClusterAwareEvent
Decide 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:
publish
in interfaceClusterAwareEvent
- Returns:
true
if event should be published from source cluster node to target cluster node
-
-