java.lang.Object
com.wyu4.snowberryjam.compiler.data.tasks.ThreadTask
- All Implemented Interfaces:
ExecutableTask,BodiedTask
Run something in a new thread.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionThreadTask(com.fasterxml.jackson.databind.JsonNode node) Create a new thread -
Method Summary
-
Field Details
-
body
The body to run
-
-
Constructor Details
-
ThreadTask
public ThreadTask(com.fasterxml.jackson.databind.JsonNode node) Create a new thread- Parameters:
node- TheJsonNodeto refer
-
-
Method Details
-
execute
public void execute()Description copied from interface:ExecutableTaskRun the task- Specified by:
executein interfaceExecutableTask
-
getId
Description copied from interface:ExecutableTaskGet the ID of the task- Specified by:
getIdin interfaceExecutableTask- Returns:
SourceId.THREAD
-
feedback
Description copied from interface:ExecutableTaskGet some feedback from the task. Can be anything, depending on the task.- Specified by:
feedbackin interfaceExecutableTask- Returns:
null
-
toString
-
getBody
Description copied from interface:BodiedTaskGet the stack of this task- Specified by:
getBodyin interfaceBodiedTask- Returns:
BodyStackof this task
-