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