Package org.hawaiiframework.async.model
Class TaskProperties
java.lang.Object
org.hawaiiframework.async.model.TaskProperties
Properties representing configuration for an individual task.
- Since:
- 2.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for executor.Getter for method name.Getter for timeout.booleanisNameMatch(String taskName) Determine if this TaskProperties' name matches the given name.voidsetExecutor(String executor) Setter for executor.voidSetter for method name.voidsetTimeout(Integer timeout) Setter for timeout.
-
Constructor Details
-
TaskProperties
public TaskProperties()
-
-
Method Details
-
getMethod
Getter for method name.- Returns:
- the method name
-
setMethod
Setter for method name.- Parameters:
method- the method name
-
getExecutor
Getter for executor.- Returns:
- the executor
-
setExecutor
Setter for executor.- Parameters:
executor- the executor
-
getTimeout
Getter for timeout.- Returns:
- the timeout
-
setTimeout
Setter for timeout.- Parameters:
timeout- the timeout
-
isNameMatch
Determine if this TaskProperties' name matches the given name.- Parameters:
taskName- the name to check- Returns:
- true if the names match
-