Class RateLimitSession
java.lang.Object
com.flowable.platform.engine.impl.sandbox.ratelimiter.RateLimitSession
- All Implemented Interfaces:
org.flowable.common.engine.impl.interceptor.Session
public class RateLimitSession
extends Object
implements org.flowable.common.engine.impl.interceptor.Session
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<String, AtomicInteger> protected final Map<String, AtomicInteger> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivityStarted(String tenantId) voidclose()voidflush()voidinstanceStarted(String tenantId) static booleanisJobApplicableForRateLimit(org.flowable.job.api.Job job) voidjobCanceled(org.flowable.job.api.Job job) voidjobScheduled(org.flowable.job.api.Job job)
-
Field Details
-
instancesStartedByTenant
-
activitiesStartedByTenant
-
jobsScheduledByTenant
-
-
Constructor Details
-
RateLimitSession
public RateLimitSession()
-
-
Method Details
-
flush
public void flush()- Specified by:
flushin interfaceorg.flowable.common.engine.impl.interceptor.Session
-
close
public void close()- Specified by:
closein interfaceorg.flowable.common.engine.impl.interceptor.Session
-
instanceStarted
-
activityStarted
-
jobScheduled
public void jobScheduled(org.flowable.job.api.Job job) -
getInstancesStartedByTenant
-
jobCanceled
public void jobCanceled(org.flowable.job.api.Job job) -
getActivitiesStartedByTenant
-
getJobsScheduledByTenant
-
isJobApplicableForRateLimit
public static boolean isJobApplicableForRateLimit(org.flowable.job.api.Job job)
-