Class FlowableBucket4jRateLimiter
java.lang.Object
com.flowable.platform.engine.impl.sandbox.ratelimiter.bucket4j.AbstractFlowableRateLimiter
com.flowable.platform.engine.impl.sandbox.ratelimiter.bucket4j.FlowableBucket4jRateLimiter
- All Implemented Interfaces:
FlowableRateLimiter
,SessionFactory
- Author:
- Filip Hrisafov
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected static class
Nested classes/interfaces inherited from class com.flowable.platform.engine.impl.sandbox.ratelimiter.bucket4j.AbstractFlowableRateLimiter
AbstractFlowableRateLimiter.RateLimitCommandContextCloseListener
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BucketConfigurationProvider
protected final io.github.bucket4j.distributed.proxy.ProxyManager<String>
-
Constructor Summary
ConstructorDescriptionFlowableBucket4jRateLimiter
(io.github.bucket4j.distributed.proxy.ProxyManager<String> proxyManager, BucketConfigurationProvider bucketConfigurationProvider) -
Method Summary
Methods inherited from class com.flowable.platform.engine.impl.sandbox.ratelimiter.bucket4j.AbstractFlowableRateLimiter
getSessionType, openSession, validateActivityInstanceStart, validateCaseInstanceStart, validateJobCancel, validateJobExecute, validateJobSchedule, validatePlanItemInstanceCreate, validateProcessInstanceStart
-
Field Details
-
proxyManager
-
bucketConfigurationProvider
-
-
Constructor Details
-
FlowableBucket4jRateLimiter
public FlowableBucket4jRateLimiter(io.github.bucket4j.distributed.proxy.ProxyManager<String> proxyManager, BucketConfigurationProvider bucketConfigurationProvider)
-
-
Method Details
-
validateJobExecuteInternal
- Specified by:
validateJobExecuteInternal
in classAbstractFlowableRateLimiter
-
getBucket
-
createCommandContextCloseListener
protected AbstractFlowableRateLimiter.RateLimitCommandContextCloseListener createCommandContextCloseListener()- Specified by:
createCommandContextCloseListener
in classAbstractFlowableRateLimiter
-