public class Task
extends java.lang.Object
Runnable
to be executed as a task, typically at a
scheduled time or interval. See subclass hierarchy for various scheduling approaches.Modifier and Type | Field and Description |
---|---|
private java.lang.Runnable |
runnable |
Constructor and Description |
---|
Task(java.lang.Runnable runnable)
Create a new
Task . |
Modifier and Type | Method and Description |
---|---|
java.lang.Runnable |
getRunnable() |