Class DiscoveryCustomEvent
- java.lang.Object
-
- org.apache.ignite.events.EventAdapter
-
- org.apache.ignite.events.DiscoveryEvent
-
- org.apache.ignite.internal.events.DiscoveryCustomEvent
-
- All Implemented Interfaces:
Serializable,Comparable<Event>,Event
public class DiscoveryCustomEvent extends DiscoveryEvent
Custom event.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intEVT_DISCOVERY_CUSTOM_EVTBuilt-in event type: custom event sent.
-
Constructor Summary
Constructors Constructor Description DiscoveryCustomEvent()Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AffinityTopologyVersionaffinityTopologyVersion()voidaffinityTopologyVersion(AffinityTopologyVersion affTopVer)DiscoveryCustomMessagecustomMessage()voidcustomMessage(DiscoveryCustomMessage customMsg)static booleanrequiresCentralizedAffinityAssignment(@Nullable DiscoveryCustomMessage msg)static booleanrequiresCentralizedAffinityAssignment(DiscoveryEvent evt)StringtoString()-
Methods inherited from class org.apache.ignite.events.DiscoveryEvent
eventNode, eventNode, message, messageTemplate, shortDisplay, span, span, topologyNodes, topologySnapshot, topologyVersion
-
-
-
-
Field Detail
-
EVT_DISCOVERY_CUSTOM_EVT
public static final int EVT_DISCOVERY_CUSTOM_EVT
Built-in event type: custom event sent.
Generated when someone invokeGridDiscoveryManager.sendCustomEvent(DiscoveryCustomMessage).- See Also:
DiscoveryCustomEvent, Constant Field Values
-
-
Method Detail
-
customMessage
public DiscoveryCustomMessage customMessage()
- Returns:
- Data.
-
customMessage
public void customMessage(DiscoveryCustomMessage customMsg)
- Parameters:
customMsg- New customMessage.
-
affinityTopologyVersion
public AffinityTopologyVersion affinityTopologyVersion()
- Returns:
- Affinity topology version.
-
affinityTopologyVersion
public void affinityTopologyVersion(AffinityTopologyVersion affTopVer)
- Parameters:
affTopVer- Affinity topology version.
-
toString
public String toString()
- Overrides:
toStringin classDiscoveryEvent
-
requiresCentralizedAffinityAssignment
public static boolean requiresCentralizedAffinityAssignment(DiscoveryEvent evt)
- Parameters:
evt- Discovery event.- Returns:
Trueif event is DiscoveryCustomEvent that requires centralized affinity assignment.
-
requiresCentralizedAffinityAssignment
public static boolean requiresCentralizedAffinityAssignment(@Nullable @Nullable DiscoveryCustomMessage msg)- Parameters:
msg- Discovery custom message.- Returns:
Trueif message belongs to event that requires centralized affinity assignment.
-
-