-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vladimir.bukhtoyarov
committed
Aug 9, 2017
1 parent
b9fc837
commit df56b39
Showing
12 changed files
with
134 additions
and
7 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
7 changes: 7 additions & 0 deletions
7
bucket4j-core/src/main/java/io/github/bucket4j/AsyncBucket.java
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,7 @@ | ||
package io.github.bucket4j; | ||
|
||
/** | ||
* Created by vladimir.bukhtoyarov on 09.08.2017. | ||
*/ | ||
public class AsyncBucket { | ||
} |
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
27 changes: 27 additions & 0 deletions
27
bucket4j-core/src/main/java/io/github/bucket4j/local/InMemoryExtension.java
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,27 @@ | ||
package io.github.bucket4j.local; | ||
|
||
import io.github.bucket4j.Extension; | ||
|
||
/** | ||
* | ||
*/ | ||
public class InMemoryExtension implements Extension<LocalBucketBuilder> { | ||
|
||
public static InMemoryExtension INSTANCE = new InMemoryExtension(); | ||
|
||
@Override | ||
public LocalBucketBuilder builder() { | ||
return new LocalBucketBuilder(); | ||
} | ||
|
||
@Override | ||
public boolean isAsyncModeSupported() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean isCustomTimeMeasurementSupported() { | ||
return true; | ||
} | ||
|
||
} |
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.github.vladimir-bukhtoyarov</groupId> | ||
<artifactId>bucket4j-parent</artifactId> | ||
<version>2.2.0</version> | ||
<relativePath>../bucket4j-parent</relativePath> | ||
</parent> | ||
|
||
<groupId>com.github.vladimir-bukhtoyarov</groupId> | ||
<artifactId>bucket4j-hazelcast</artifactId> | ||
<version>2.2.0</version> | ||
|
||
|
||
</project> |
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.github.vladimir-bukhtoyarov</groupId> | ||
<artifactId>bucket4j-parent</artifactId> | ||
<version>2.2.0</version> | ||
<relativePath>../bucket4j-parent</relativePath> | ||
</parent> | ||
|
||
<groupId>com.github.vladimir-bukhtoyarov</groupId> | ||
<artifactId>bucket4j-ignite</artifactId> | ||
<version>2.2.0</version> | ||
|
||
|
||
</project> |
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,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.github.vladimir-bukhtoyarov</groupId> | ||
<artifactId>bucket4j-parent</artifactId> | ||
<version>2.2.0</version> | ||
<relativePath>../bucket4j-parent</relativePath> | ||
</parent> | ||
|
||
<groupId>com.github.vladimir-bukhtoyarov</groupId> | ||
<artifactId>bucket4j-infinispan</artifactId> | ||
<version>2.2.0</version> | ||
|
||
</project> |
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