public static class TopologyListener.TopologyChangeEventImpl extends Object implements TopologyChangeEvent
TopologyChangeEvent.EventType| Constructor and Description |
|---|
TopologyChangeEventImpl(String instanceId,
String ownInstanceId,
InstanceRole ownInstanceRole,
TopologyChangeEvent.EventType eventType) |
| Modifier and Type | Method and Description |
|---|---|
TopologyChangeEvent.EventType |
getEventType() |
String |
getInstanceId()
The id that is related to the instance leaving, joining the cluster or elected
|
String |
getOwnInstanceId()
The id that is related to the instance that is receiving the event
|
InstanceRole |
getOwnInstanceRole()
The role that is related to the instance that is receiving the event
|
String |
toString() |
public TopologyChangeEventImpl(String instanceId, String ownInstanceId, InstanceRole ownInstanceRole, TopologyChangeEvent.EventType eventType)
public String getInstanceId()
TopologyChangeEventgetInstanceId in interface TopologyChangeEventpublic String getOwnInstanceId()
TopologyChangeEventgetOwnInstanceId in interface TopologyChangeEventpublic InstanceRole getOwnInstanceRole()
TopologyChangeEventgetOwnInstanceRole in interface TopologyChangeEventInstanceRolepublic TopologyChangeEvent.EventType getEventType()
getEventType in interface TopologyChangeEventTopologyChangeEvent.EventTypeCopyright © 2013-2016–2018 Graph Aware Limited. All rights reserved.