T - the object type@FunctionalInterface public interface PartitioningStrategy<T>
Bucket.
Functions will not necessarily return consistent results for subsequent calls using the same parameters, as their behaviour usually depends heavily on current bucket state.
| Modifier and Type | Method and Description |
|---|---|
int |
allocate(T object,
Bucket<T> bucket)
Calculates the index of the partition to use for the object.
|
Copyright © 2020. All rights reserved.