Class LongRunningCommandInterruptor
java.lang.Object
org.flowable.common.engine.impl.interceptor.AbstractCommandInterceptor
com.flowable.platform.engine.impl.sandbox.longrunning.LongRunningCommandInterruptor
- All Implemented Interfaces:
org.flowable.common.engine.impl.agenda.AgendaOperationExecutionListener
,org.flowable.common.engine.impl.interceptor.CommandInterceptor
public class LongRunningCommandInterruptor
extends org.flowable.common.engine.impl.interceptor.AbstractCommandInterceptor
implements org.flowable.common.engine.impl.agenda.AgendaOperationExecutionListener
- Author:
- Filip Hrisafov
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.interceptor.AbstractCommandInterceptor
next
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterAll
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) void
afterExecute
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Runnable runnable) void
afterExecuteException
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Runnable runnable, Throwable error) void
beforeAll
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) void
beforeExecute
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Runnable runnable) <T> T
execute
(org.flowable.common.engine.impl.interceptor.CommandConfig config, org.flowable.common.engine.impl.interceptor.Command<T> command, org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor) protected Duration
getMaxCommandDuration
(String tenantId, PlatformEngineConfiguration platformEngineConfiguration) protected Duration
getMaxCommandDuration
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected void
validateRuntimeWithinLimits
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) Methods inherited from class org.flowable.common.engine.impl.interceptor.AbstractCommandInterceptor
getNext, setNext
-
Constructor Details
-
LongRunningCommandInterruptor
public LongRunningCommandInterruptor()
-
-
Method Details
-
execute
public <T> T execute(org.flowable.common.engine.impl.interceptor.CommandConfig config, org.flowable.common.engine.impl.interceptor.Command<T> command, org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor) - Specified by:
execute
in interfaceorg.flowable.common.engine.impl.interceptor.CommandInterceptor
-
beforeAll
public void beforeAll(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) - Specified by:
beforeAll
in interfaceorg.flowable.common.engine.impl.agenda.AgendaOperationExecutionListener
-
beforeExecute
public void beforeExecute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Runnable runnable) - Specified by:
beforeExecute
in interfaceorg.flowable.common.engine.impl.agenda.AgendaOperationExecutionListener
-
afterExecute
public void afterExecute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Runnable runnable) - Specified by:
afterExecute
in interfaceorg.flowable.common.engine.impl.agenda.AgendaOperationExecutionListener
-
afterExecuteException
public void afterExecuteException(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Runnable runnable, Throwable error) - Specified by:
afterExecuteException
in interfaceorg.flowable.common.engine.impl.agenda.AgendaOperationExecutionListener
-
afterAll
public void afterAll(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) - Specified by:
afterAll
in interfaceorg.flowable.common.engine.impl.agenda.AgendaOperationExecutionListener
-
validateRuntimeWithinLimits
protected void validateRuntimeWithinLimits(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getMaxCommandDuration
protected Duration getMaxCommandDuration(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getMaxCommandDuration
protected Duration getMaxCommandDuration(String tenantId, PlatformEngineConfiguration platformEngineConfiguration)
-