public class DiscoveryCustomEvent extends DiscoveryEvent
Modifier and Type | Field and Description |
---|---|
static int |
EVT_DISCOVERY_CUSTOM_EVT
Built-in event type: custom event sent.
|
Constructor and Description |
---|
DiscoveryCustomEvent()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
AffinityTopologyVersion |
affinityTopologyVersion() |
void |
affinityTopologyVersion(AffinityTopologyVersion affTopVer) |
DiscoveryCustomMessage |
customMessage() |
void |
customMessage(DiscoveryCustomMessage customMsg) |
static boolean |
requiresCentralizedAffinityAssignment(@Nullable DiscoveryCustomMessage msg) |
static boolean |
requiresCentralizedAffinityAssignment(DiscoveryEvent evt) |
String |
toString() |
eventNode, eventNode, message, messageTemplate, shortDisplay, span, span, topologyNodes, topologySnapshot, topologyVersion
public static final int EVT_DISCOVERY_CUSTOM_EVT
GridDiscoveryManager.sendCustomEvent(DiscoveryCustomMessage)
.
DiscoveryCustomEvent
,
Constant Field Valuespublic DiscoveryCustomMessage customMessage()
public void customMessage(DiscoveryCustomMessage customMsg)
customMsg
- New customMessage.public AffinityTopologyVersion affinityTopologyVersion()
public void affinityTopologyVersion(AffinityTopologyVersion affTopVer)
affTopVer
- Affinity topology version.public String toString()
toString
in class DiscoveryEvent
public static boolean requiresCentralizedAffinityAssignment(DiscoveryEvent evt)
evt
- Discovery event.True
if event is DiscoveryCustomEvent that requires centralized affinity assignment.public static boolean requiresCentralizedAffinityAssignment(@Nullable @Nullable DiscoveryCustomMessage msg)
msg
- Discovery custom message.True
if message belongs to event that requires centralized affinity assignment.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021