com.h3c.util.persistence.cassandra.entitymgr.wal

## Class WALgroupListener

- java.lang.Object
- - com.h3c.util.persistence.cassandra.entitymgr.wal.WALgroupListener

- All Implemented Interfaces:
    GroupListener, Serializable

      public class WALgroupListener
      extends Object
      implements GroupListener

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `WALgroupListener(int priority, com.netflix.astyanax.Keyspace keyspace)` Get the priority

  - ### 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.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### WALgroupListener

          public WALgroupListener(int priority,
                          com.netflix.astyanax.Keyspace keyspace)

      Get the priority
      Parameters:
        `priority` -
        `keyspace` -

  - ### Method Detail

    - #### processGroupMsg

          public void processGroupMsg(GroupEvent event,
                             String instanceId)

      Description copied from interface: `GroupListener`
      This is the callback to be implemented by the applications to process the groups status change notifications.
      Specified by:
        `processGroupMsg` in interface `GroupListener`
      Parameters:
        `event` - - group event type
        `instanceId` - - instance id of the group member

    - #### getPriority

          public int getPriority()

      Description copied from interface: `GroupListener`
      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.
      Specified by:
        `getPriority` in interface `GroupListener`
      Returns:
        int - priority

Copyright © 2014. All Rights Reserved.