public interface ClusterAwareEvent
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
default boolean |
canPublish(PublishEventContext publishEventContext)
Decide whether this event should be broadcasted/received.
|
default boolean |
publish(int sourceNodeId,
int targetNodeId)
Deprecated.
Use
canPublish(PublishEventContext) instead. |
default boolean publish(int sourceNodeId,
int targetNodeId)
canPublish(PublishEventContext) instead.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 nodedefault boolean canPublish(PublishEventContext publishEventContext)
publishEventContext - context object containing all necessary information about target and source node Id's as well as target
node groups.true if event should be published from source cluster node to target cluster nodePublishEventContext}Copyright © 2018 SAP SE. All Rights Reserved.