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 TypeMethodDescriptionvoid
activityStarted
(String tenantId) void
close()
void
flush()
void
instanceStarted
(String tenantId) static boolean
isJobApplicableForRateLimit
(org.flowable.job.api.Job job) void
jobCanceled
(org.flowable.job.api.Job job) void
jobScheduled
(org.flowable.job.api.Job job)
-
Field Details
-
instancesStartedByTenant
-
activitiesStartedByTenant
-
jobsScheduledByTenant
-
-
Constructor Details
-
RateLimitSession
public RateLimitSession()
-
-
Method Details
-
flush
public void flush()- Specified by:
flush
in interfaceorg.flowable.common.engine.impl.interceptor.Session
-
close
public void close()- Specified by:
close
in 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)
-