Class PowerSetPartitionMapFactory
- java.lang.Object
-
- io.servicetalk.client.api.internal.partition.PowerSetPartitionMapFactory
-
- All Implemented Interfaces:
PartitionMapFactory
public final class PowerSetPartitionMapFactory extends java.lang.Object implements PartitionMapFactory
APartitionMapFactory
that generatesPowerSetPartitionMap
type objects.
-
-
Field Summary
Fields Modifier and Type Field Description static PartitionMapFactory
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends AsyncCloseable>
PartitionMap<T>newPartitionMap(java.util.function.Function<PartitionAttributes,T> valueFactory)
Create a newPartitionMap
object.
-
-
-
Field Detail
-
INSTANCE
public static final PartitionMapFactory INSTANCE
-
-
Method Detail
-
newPartitionMap
public <T extends AsyncCloseable> PartitionMap<T> newPartitionMap(java.util.function.Function<PartitionAttributes,T> valueFactory)
Description copied from interface:PartitionMapFactory
Create a newPartitionMap
object.- Specified by:
newPartitionMap
in interfacePartitionMapFactory
- Type Parameters:
T
- The value type of a partition.- Parameters:
valueFactory
- The factory used to create new partitions.- Returns:
- a new
PartitionMap
object.
-
-