@ConsumerType
public interface TopologyEventListener
TopologyEventListener
service interface may be implemented by
components interested in being made aware of changes in the topology.
Upon registration and whenever changes in the topology occur, this service is informed.
Modifier and Type | Method and Description |
---|---|
void |
handleTopologyEvent(TopologyEvent event)
Inform the service about an event in the topology - or in the discovery
of the topology.
|
void handleTopologyEvent(TopologyEvent event)
The TopologyEvent
contains details about what changed.
The supported event types are:
TOPOLOGY_INIT
sent when the TopologyEventListener
was first bound to the discovery service - represents the initial state
of the topology at that time.TOPOLOGY_CHANGING
sent when the discovery service
discovered a change in the topology and has started to settle the change.
This event is sent before TOPOLOGY_CHANGED
but is optionalTOPOLOGY_CHANGED
sent when the discovery service
discovered a change in the topology and has settled it.PROPERTIES_CHANGED
sent when the one or many properties
have changed in an instance in the current topologyevent
- The topology eventCopyright © 2015 The Apache Software Foundation. All rights reserved.