Interface ClusterViewEventListener

  • All Superinterfaces:
    java.util.EventListener
    All Known Implementing Classes:
    GroupCommunicationProviderImpl

    public interface ClusterViewEventListener
    extends java.util.EventListener
    The listener interface for receiving ClusterViewManager events.

    The following example illustrates how to implement a ClusterViewEventListener:

     
     ClusterViewEventListener myListener = new ClusterViewEventListener() {
       public void clusterViewEvent(int event, , SystemAdvertisement advertisement) {
            if (event == ClusterViewManager.ADD_EVENT) {
              .....
            }
       }
     }
     
     
    • Method Detail

      • clusterViewEvent

        void clusterViewEvent​(ClusterViewEvent event,
                              ClusterView clusterView)
        Called when a cluster view event occurs.
        Parameters:
        event - The event that occurred.
        clusterView - the current membership snapshot after the event.