Class BucketFactory
java.lang.Object
dev.demeng.pluginbase.bucket.factory.BucketFactory
A set of methods for creating
Buckets.-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> Bucket<E>newBucket(int size, PartitioningStrategy<E> strategy, Supplier<Set<E>> setSupplier) static <E> Bucket<E>newConcurrentBucket(int size, PartitioningStrategy<E> strategy) static <E> Bucket<E>newHashSetBucket(int size, PartitioningStrategy<E> strategy) static <E> Bucket<E>newSynchronizedHashSetBucket(int size, PartitioningStrategy<E> strategy)
-
Method Details
-
newBucket
public static <E> Bucket<E> newBucket(int size, PartitioningStrategy<E> strategy, Supplier<Set<E>> setSupplier) -
newHashSetBucket
-
newSynchronizedHashSetBucket
public static <E> Bucket<E> newSynchronizedHashSetBucket(int size, PartitioningStrategy<E> strategy) -
newConcurrentBucket
-