Package org.hawaiiframework.async.model
Class TaskProperties
- java.lang.Object
-
- org.hawaiiframework.async.model.TaskProperties
-
public class TaskProperties extends Object
Properties representing configuration for an individual task.- Since:
- 2.0.0
- Author:
- Rutger Lubbers, Paul Klos
-
-
Constructor Summary
Constructors Constructor Description TaskProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetExecutor()Getter for executor.StringgetMethod()Getter for method name.IntegergetTimeout()Getter for timeout.booleanisNameMatch(String taskName)Determine if this TaskProperties' name matches the given name.voidsetExecutor(String executor)Setter for executor.voidsetMethod(String method)Setter for method name.voidsetTimeout(Integer timeout)Setter for timeout.
-
-
-
Method Detail
-
getMethod
public String getMethod()
Getter for method name.- Returns:
- the method name
-
setMethod
public void setMethod(String method)
Setter for method name.- Parameters:
method- the method name
-
getExecutor
public String getExecutor()
Getter for executor.- Returns:
- the executor
-
setExecutor
public void setExecutor(String executor)
Setter for executor.- Parameters:
executor- the executor
-
getTimeout
public Integer getTimeout()
Getter for timeout.- Returns:
- the timeout
-
setTimeout
public void setTimeout(Integer timeout)
Setter for timeout.- Parameters:
timeout- the timeout
-
isNameMatch
public boolean isNameMatch(String taskName)
Determine if this TaskProperties' name matches the given name.- Parameters:
taskName- the name to check- Returns:
- true if the names match
-
-