-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#10 use JCache API instead concrete GRID solutions
- Loading branch information
vladimir.bukhtoyarov
committed
Mar 3, 2017
1 parent
5f7c19e
commit 7340784
Showing
26 changed files
with
311 additions
and
434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.github.bucket4j; | ||
|
||
import com.github.bucket4j.grid.jcache.JCacheBucketBuilder; | ||
import com.github.bucket4j.grid.jcache.RecoveryStrategy; | ||
import com.github.bucket4j.local.LocalBucketBuilder; | ||
|
||
/** | ||
* Entry point of bucket4j library | ||
*/ | ||
public class Bucket4j { | ||
|
||
public static LocalBucketBuilder builder() { | ||
return new LocalBucketBuilder(); | ||
} | ||
|
||
public static JCacheBucketBuilder jCacheBuilder(RecoveryStrategy recoveryStrategy) { | ||
return new JCacheBucketBuilder(recoveryStrategy); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.