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