public class LocalBucketBuilder extends ConfigurationBuilder<LocalBucketBuilder>
LockFreeBucket).| Constructor and Description |
|---|
LocalBucketBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Bucket |
build()
Constructs the bucket using
SynchronizationStrategy.LOCK_FREE synchronization strategy. |
Bucket |
build(SynchronizationStrategy synchronizationStrategy)
Constructs the new instance of local bucket which concrete type depends on synchronizationStrategy
|
addLimit, addLimit, buildConfiguration, toString, withCustomTimePrecision, withMillisecondPrecision, withNanosecondPrecisionpublic Bucket build()
SynchronizationStrategy.LOCK_FREE synchronization strategy.public Bucket build(SynchronizationStrategy synchronizationStrategy)
synchronizationStrategy - the strategy of synchronization which need to be applied to prevent data-races in multithreading usage scenario.Copyright © 2018. All rights reserved.