public interface ClusterAwareEvent
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
publish(int sourceNodeId,
int targetNodeId)
Decide whether this event should be broadcasted/received.
|
boolean publish(int sourceNodeId,
int targetNodeId)
return (sourceNodeId==targetNodeId ); => will only publish to local clusterreturn true; => will publish to all nodesreturn (targetNodeId==14); => publish to dedicated node regardless of sourcetrue if event should be published from source cluster node to target cluster nodeCopyright © 2018 SAP SE. All Rights Reserved.