public abstract class Worker<T>
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
Worker() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
construct() |
protected void |
done(T value) |
protected void |
failed(java.lang.Throwable error) |
protected void |
finished() |
protected java.lang.Throwable |
getError() |
T |
getValue() |
void |
run() |
void |
start() |
public final void run()
run in interface java.lang.Runnableprotected abstract T construct() throws java.lang.Exception
java.lang.Exceptionprotected void done(T value)
protected void failed(java.lang.Throwable error)
protected void finished()
public T getValue()
protected java.lang.Throwable getError()
public void start()
Copyright © 2022. All Rights Reserved.