Class DefaultPartition

    • Constructor Detail

      • DefaultPartition

        protected DefaultPartition()
        Constructs an empty partition for the serializer.
      • DefaultPartition

        public DefaultPartition​(PartitionId id,
                                Collection<NodeId> members)
        Constructs a partition.
        Parameters:
        id - partition identifier
        members - partition member nodes
      • DefaultPartition

        public DefaultPartition​(Partition other)
        Constructs a partition that is a copy of another.
        Parameters:
        other - partition to copy
    • Method Detail

      • getId

        public PartitionId getId()
        Description copied from interface: Partition
        Returns the partition identifier.
        Specified by:
        getId in interface Partition
        Returns:
        partition identifier
      • getMembers

        public Collection<NodeId> getMembers()
        Description copied from interface: Partition
        Returns the controller nodes that are members of this partition.
        Specified by:
        getMembers in interface Partition
        Returns:
        collection of controller node identifiers
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object