com.hazelcast.partition.membergroup

## Class SPIAwareMemberGroupFactory

- java.lang.Object
- - com.hazelcast.partition.membergroup.SPIAwareMemberGroupFactory

- All Implemented Interfaces:
    MemberGroupFactory

      public class SPIAwareMemberGroupFactory
      extends Object
      implements MemberGroupFactory

  SPIAwareMemberGroupFactory is responsible for providing custom MemberGroups implemented by the user in `DiscoveryStrategy.getPartitionGroupStrategy()` to the `PartitionStateManager`.
  Since:
    3.7

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SPIAwareMemberGroupFactory(DiscoveryService discoveryService)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected Set<MemberGroup>` | `createInternalMemberGroups(Collection<? extends Member> allMembers)`
    `Collection<MemberGroup>` | `createMemberGroups(Collection<? extends Member> members)`

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

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

    - ### Methods inherited from interface com.hazelcast.partition.membergroup.MemberGroupFactory

      `createMemberGroups`

- - ### Constructor Detail

    - #### SPIAwareMemberGroupFactory

          public SPIAwareMemberGroupFactory(DiscoveryService discoveryService)

  - ### Method Detail

    - #### createInternalMemberGroups

          protected Set<MemberGroup> createInternalMemberGroups(Collection<? extends Member> allMembers)

    - #### createMemberGroups

          public final Collection<MemberGroup> createMemberGroups(Collection<? extends Member> members)

      Specified by:
        `createMemberGroups` in interface `MemberGroupFactory`

Copyright © 2020. All rights reserved.