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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterExecute(CommandContext commandContext, Runnable runnable) voidafterExecuteException(CommandContext commandContext, Runnable runnable, Throwable error) voidbeforeExecute(CommandContext commandContext, Runnable runnable) <T> Texecute(CommandConfig config, Command<T> command, CommandExecutor commandExecutor) protected DurationgetMaxCommandDuration(String tenantId, PlatformEngineConfiguration platformEngineConfiguration) protected DurationgetMaxCommandDuration(CommandContext commandContext) protected voidvalidateRuntimeWithinLimits(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:
executein interfaceCommandInterceptor
-
beforeExecute
- Specified by:
beforeExecutein interfaceAgendaOperationExecutionListener
-
afterExecute
- Specified by:
afterExecutein interfaceAgendaOperationExecutionListener
-
afterExecuteException
public void afterExecuteException(CommandContext commandContext, Runnable runnable, Throwable error) - Specified by:
afterExecuteExceptionin interfaceAgendaOperationExecutionListener
-
validateRuntimeWithinLimits
-
getMaxCommandDuration
-
getMaxCommandDuration
protected Duration getMaxCommandDuration(String tenantId, PlatformEngineConfiguration platformEngineConfiguration)
-