public static enum TopologyEvent.Type extends java.lang.Enum<TopologyEvent.Type>
Enum Constant and Description |
---|
PROPERTIES_CHANGED
One or many properties have been changed on an instance which is part
of the topology.
|
TOPOLOGY_CHANGED
Informs the service about a state change in the topology.
|
TOPOLOGY_CHANGING
Informs the service about the fact that a state change was detected in
the topology/cluster and that the new state is in the process of
being discovered.
|
TOPOLOGY_INIT
Informs the service about the initial topology state - this is only
sent once at bind-time and is the first one a TopologyEventListener
receives (after the implementation bundle was activated).
|
Modifier and Type | Method and Description |
---|---|
static TopologyEvent.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TopologyEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TopologyEvent.Type TOPOLOGY_INIT
public static final TopologyEvent.Type TOPOLOGY_CHANGING
After receiving a TOPOLOGY_CHANGING and before receiving a TOPOLOGY_CHANGED event a TopologyEventListener cannot make any assumptions wrt the topology whatsoever, including whether or not the local instance is part of it at all (partitioning).
An implementation must always send a TOPOLOGY_CHANGING before a TOPOLOGY_CHANGED.
public static final TopologyEvent.Type TOPOLOGY_CHANGED
A state change includes:
Note that a TOPOLOGY_CHANGED can also include changes in the properties!
public static final TopologyEvent.Type PROPERTIES_CHANGED
This event is sent when otherwise the topology remains identical.
public static TopologyEvent.Type[] values()
for (TopologyEvent.Type c : TopologyEvent.Type.values()) System.out.println(c);
public static TopologyEvent.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2018 The Apache Software Foundation. All rights reserved.