public class Bucket4j extends Object
Constructor and Description |
---|
Bucket4j() |
Modifier and Type | Method and Description |
---|---|
static LocalBucketBuilder |
builder()
Creates the new builder of in-memory buckets.
|
static JCacheBucketBuilder |
jCacheBuilder(RecoveryStrategy recoveryStrategy)
Creates the new builder for buckets backed by any JCache API (JSR 107) implementation.
|
public static LocalBucketBuilder builder()
LocalBucketBuilder
public static JCacheBucketBuilder jCacheBuilder(RecoveryStrategy recoveryStrategy)
recoveryStrategy
- specifies the reaction which should be applied in case of previously saved state of bucket has been lost.JCacheBucketBuilder
Copyright © 2017. All rights reserved.