a
- the returned object data typepublic abstract static class ThreadUtil.WaitTimeout<a> extends Object implements Runnable
Constructor and Description |
---|
WaitTimeout(int millis) |
Modifier and Type | Method and Description |
---|---|
a |
getWaitedObject() |
protected abstract a |
handle()
this is the handle routine that may take longer
it should return the expected object when completed |
void |
run() |
void |
start()
start the thread
|
protected String baseName
public WaitTimeout(int millis)
millis
- wait timeout in millisecondsprotected abstract a handle()
public final void start()
public final void run()
run
in interface Runnable
Runnable.run()
public final a getWaitedObject()
Copyright © 2018. All rights reserved.