T - The partition type.ClientGroup as an alternative or reach out to the maintainers describing
the use-case.@Deprecated
public final class PowerSetPartitionMap<T extends AsyncCloseable>
extends Object
implements PartitionMap<T>
PartitionMap that creates the full power set using the individual attributes in
PartitionAttributeses to create partitions for each add(PartitionAttributes).| Constructor and Description |
|---|
PowerSetPartitionMap(Function<PartitionAttributes,T> valueFactory,
IntFunction<PartitionAttributesBuilder> partitionAttributesBuilderFunc)
Deprecated.
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<T> |
add(PartitionAttributes partition)
Deprecated.
|
Completable |
closeAsync()
Deprecated.
|
Completable |
closeAsyncGracefully()
Deprecated.
|
T |
get(PartitionAttributes wildCardAttributes)
Deprecated.
|
Completable |
onClose()
Deprecated.
|
Completable |
onClosing()
Deprecated.
|
List<T> |
remove(PartitionAttributes partition)
Deprecated.
|
public PowerSetPartitionMap(Function<PartitionAttributes,T> valueFactory, IntFunction<PartitionAttributesBuilder> partitionAttributesBuilderFunc)
valueFactory - Generates values for new partitions.partitionAttributesBuilderFunc - Generates new PartitionAttributes objects, this factory must be
consistent with the factory used to build the PartitionAttributes objects for
add(PartitionAttributes) and remove(PartitionAttributes) to ensure Object.hashCode() and
Object.equals(Object) are consistent.public T get(@Nullable PartitionAttributes wildCardAttributes)
get in interface PartitionMap<T extends AsyncCloseable>public List<T> add(PartitionAttributes partition)
add in interface PartitionMap<T extends AsyncCloseable>public List<T> remove(PartitionAttributes partition)
remove in interface PartitionMap<T extends AsyncCloseable>public Completable onClose()
onClose in interface ListenableAsyncCloseablepublic Completable onClosing()
onClosing in interface ListenableAsyncCloseablepublic Completable closeAsync()
closeAsync in interface AsyncCloseablepublic Completable closeAsyncGracefully()
closeAsyncGracefully in interface AsyncCloseable