Package io.atomix.primitive.partition
Interface ManagedPartitionGroup
- All Superinterfaces:
Configured<PartitionGroupConfig>,PartitionGroup
- All Known Implementing Classes:
RaftPartitionGroup
Managed partition group.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.atomix.primitive.partition.PartitionGroup
PartitionGroup.Builder<C extends PartitionGroupConfig<C>>, PartitionGroup.Type<C extends PartitionGroupConfig<C>> -
Method Summary
Modifier and TypeMethodDescriptionclose()Closes the partition group.connect(PartitionManagementService managementService) Connects to the partition group.join(PartitionManagementService managementService) Joins the partition group.Methods inherited from interface io.atomix.utils.config.Configured
configMethods inherited from interface io.atomix.primitive.partition.PartitionGroup
getPartition, getPartition, getPartition, getPartitionIds, getPartitions, getPartitionsWithMember, name
-
Method Details
-
join
Joins the partition group.- Parameters:
managementService- the partition management service- Returns:
- a future to be completed once the partition group has been joined
-
connect
Connects to the partition group.- Parameters:
managementService- the partition management service- Returns:
- a future to be completed once the partition group has been connected
-
close
CompletableFuture<Void> close()Closes the partition group.- Returns:
- a future to be completed once the partition group has been closed
-