Class Bucket4jRateLimitationForAgentInvocation
java.lang.Object
com.flowable.agent.engine.impl.sandbox.ratelimiter.bucket4j.Bucket4jRateLimitationForAgentInvocation
- All Implemented Interfaces:
RateLimitationForAgentInvocation
public class Bucket4jRateLimitationForAgentInvocation
extends Object
implements RateLimitationForAgentInvocation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected io.github.bucket4j.Bucketprotected int -
Constructor Summary
ConstructorsConstructorDescriptionBucket4jRateLimitationForAgentInvocation(io.github.bucket4j.Bucket bucket, int estimatedNrTokens) -
Method Summary
-
Field Details
-
bucket
protected io.github.bucket4j.Bucket bucket -
estimatedNrTokens
protected int estimatedNrTokens
-
-
Constructor Details
-
Bucket4jRateLimitationForAgentInvocation
public Bucket4jRateLimitationForAgentInvocation(io.github.bucket4j.Bucket bucket, int estimatedNrTokens)
-
-
Method Details
-
afterAgentInvocation
- Specified by:
afterAgentInvocationin interfaceRateLimitationForAgentInvocation
-