AbstractProcessEvent instead.@Deprecated public class AbstractSyncEvent<T extends AbstractEvent> extends AbstractEvent implements ClusterAwareEvent
| Constructor and Description |
|---|
AbstractSyncEvent(T syncEvent)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getSyncEvent()
Deprecated.
|
boolean |
publish(int sourceNodeId,
int targetNodeId)
Deprecated.
Decide whether this event should be broadcasted/received.
|
getScope, getSource, isFromCluster, setFromCluster, setScope, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanPublishpublic AbstractSyncEvent(T syncEvent)
public T getSyncEvent()
public boolean publish(int sourceNodeId,
int targetNodeId)
ClusterAwareEventreturn (sourceNodeId==targetNodeId ); => will only publish to local clusterreturn true; => will publish to all nodesreturn (targetNodeId==14); => publish to dedicated node regardless of sourcepublish in interface ClusterAwareEventtrue if event should be published from source cluster node to target cluster nodeCopyright © 2018 SAP SE. All Rights Reserved.