Class GroovyTaskExpiryService
java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.AbstractGroovyService
com.avoka.fc.core.service.submission.GroovyTaskExpiryService
- All Implemented Interfaces:
IGroovyDebugLogService
,IServiceDefinitionAware
,ITaskExpiryProcessService
,IUnitTestableService
public class GroovyTaskExpiryService
extends AbstractGroovyService
implements ITaskExpiryProcessService
Provides a Groovy Script Task Expiry service.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexpireTask
(Submission task) Expire the specified task submission.expireTask
(String taskKey) Deprecated.Gets the max invocation attempts.void
setMaxInvocationAttempts
(Integer attempts) Sets the max invocation attempts.Methods inherited from class com.avoka.fc.core.service.AbstractGroovyService
createExceptionAndLog, executeGroovyScript, executeGroovyScript, getCause, getExecutionTimeout, getGroovyDebugLogging, getGroovyScript, getGroovyServiceLog, getServiceDefinition, getServiceName, getServiceNameAndVersion, getServiceTimeout, getTestLogOutput, isExceptionDebugLoggingEnabled, isGroovyLoggingEnabled, isGroovyTypeChecked, runUnitTest, setExceptionDebugLoggingEnabled, setExecutionTimeout, setGroovyDebugLogging, setGroovyLoggingEnabled, setGroovyScript, setGroovyTypeChecked, setServiceDefinition, setUseModuleClassLoader
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.avoka.fc.core.service.IGroovyDebugLogService
isGroovyDebugLogging
-
Constructor Details
-
GroovyTaskExpiryService
public GroovyTaskExpiryService()
-
-
Method Details
-
expireTask
Expire the specified task submission.- Specified by:
expireTask
in interfaceITaskExpiryProcessService
- Parameters:
task
- the task submission to expire- Returns:
- a task expiry info message
- Since:
- 5.0.0
- See Also:
-
expireTask
Deprecated.Expire a task submission.- Specified by:
expireTask
in interfaceITaskExpiryProcessService
- Parameters:
taskKey
- the task key- Returns:
- a message describing the result
- See Also:
-
getErrorType
- Specified by:
getErrorType
in classAbstractGroovyService
- Returns:
- the service error type to be used to classify the error logging records
- Since:
- 4.3.4
-
getMaxInvocationAttempts
Gets the max invocation attempts.- Specified by:
getMaxInvocationAttempts
in interfaceITaskExpiryProcessService
- Returns:
- the max invocation attempts
-
setMaxInvocationAttempts
Sets the max invocation attempts.- Specified by:
setMaxInvocationAttempts
in interfaceITaskExpiryProcessService
- Parameters:
attempts
- the new max invocation attempts
-