public class NamedTask<T>
extends java.lang.Object
implements java.util.concurrent.Callable<T>
Constructor and Description |
---|
NamedTask(java.lang.String name,
java.util.concurrent.Callable<T> callable)
Wraps a callable as a named task.
|
NamedTask(java.lang.String name,
java.lang.Runnable runnable)
Wraps a runnable as a named task.
|
Modifier and Type | Method and Description |
---|---|
T |
call() |
java.lang.String |
toString() |