Class BucketTokenInterceptor
java.lang.Object
dev.voidframework.bucket4j.module.BucketTokenInterceptor
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.aopalliance.intercept.Interceptor,org.aopalliance.intercept.MethodInterceptor
public class BucketTokenInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor
Intercepts method calls to apply "bucket-token" algorithm.
- Since:
- 1.9.0
-
Constructor Summary
ConstructorsConstructorDescriptionBucketTokenInterceptor(BucketTokenRegistry bucketTokenRegistry) Build a new instance. -
Method Summary
-
Constructor Details
-
BucketTokenInterceptor
Build a new instance.- Parameters:
bucketTokenRegistry- The Bucket registry- Since:
- 1.9.0
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
Throwable
-