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 TypeMethodDescriptionvoidafterAll(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) voidafterExecute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Runnable runnable) voidafterExecuteException(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Runnable runnable, Throwable error) voidbeforeAll(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) voidbeforeExecute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Runnable runnable) <T> Texecute(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 DurationgetMaxCommandDuration(String tenantId, PlatformEngineConfiguration platformEngineConfiguration) protected DurationgetMaxCommandDuration(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected voidvalidateRuntimeWithinLimits(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:
executein interfaceorg.flowable.common.engine.impl.interceptor.CommandInterceptor
-
beforeAll
public void beforeAll(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) - Specified by:
beforeAllin interfaceorg.flowable.common.engine.impl.agenda.AgendaOperationExecutionListener
-
beforeExecute
public void beforeExecute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Runnable runnable) - Specified by:
beforeExecutein interfaceorg.flowable.common.engine.impl.agenda.AgendaOperationExecutionListener
-
afterExecute
public void afterExecute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, Runnable runnable) - Specified by:
afterExecutein 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:
afterExecuteExceptionin interfaceorg.flowable.common.engine.impl.agenda.AgendaOperationExecutionListener
-
afterAll
public void afterAll(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) - Specified by:
afterAllin 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)
-