com.h3c.dist.groups

## Interface GroupListener

- All Superinterfaces:
    Serializable
  All Known Implementing Classes:
    WALgroupListener

      public interface GroupListener
      extends Serializable

  This interface needs to be implemented by the applications that are interested in processing group state change notifications from Groups service

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getPriority()` This is the callback to get the priority of the instance in the group.
    `void` | `processGroupMsg(GroupEvent event, String instanceId)` This is the callback to be implemented by the applications to process the groups status change notifications.

- - ### Method Detail

    - #### processGroupMsg

          void processGroupMsg(GroupEvent event,
                             String instanceId)

      This is the callback to be implemented by the applications to process the groups status change notifications.
      Parameters:
        `event` - - group event type
        `instanceId` - - instance id of the group member

    - #### getPriority

          int getPriority()

      This is the callback to get the priority of the instance in the group. Leader election is carried based on the priority of the group members.
      Returns:
        int - priority

Copyright © 2014. All Rights Reserved.