Package io.atomix.primitive.partition
Interface PartitionService
- All Known Subinterfaces:
ManagedPartitionService
public interface PartitionService
Partition service.
-
Method Summary
Modifier and Type Method Description default PartitionGroupgetPartitionGroup(PrimitiveProtocol.Type type)Returns the first partition group that matches the given primitive type.default PartitionGroupgetPartitionGroup(ProxyProtocol protocol)Returns the first partition group that matches the given primitive protocol.PartitionGroupgetPartitionGroup(String name)Returns a partition group by name.Collection<PartitionGroup>getPartitionGroups()Returns a collection of all partition groups.PartitionGroupgetSystemPartitionGroup()Returns the system partition group.
-
Method Details
-
getSystemPartitionGroup
PartitionGroup getSystemPartitionGroup()Returns the system partition group.- Returns:
- the system partition group
-
getPartitionGroup
Returns a partition group by name.- Parameters:
name- the name of the partition group- Returns:
- the partition group
-
getPartitionGroup
Returns the first partition group that matches the given primitive type.- Parameters:
type- the primitive type- Returns:
- the first partition group that matches the given primitive type
-
getPartitionGroup
Returns the first partition group that matches the given primitive protocol.- Parameters:
protocol- the primitive protocol- Returns:
- the first partition group that matches the given primitive protocol
-
getPartitionGroups
Collection<PartitionGroup> getPartitionGroups()Returns a collection of all partition groups.- Returns:
- a collection of all partition groups
-