|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.dragon.util.AbstractTimeout<T>
public abstract class AbstractTimeout<T>
| Constructor Summary | |
|---|---|
protected |
AbstractTimeout()
|
| Method Summary | |
|---|---|
protected abstract T |
command()
Method to execute with a timeout limit |
protected abstract void |
commandTimeOut(T result)
Method executed if timout occured but result is ok |
T |
execute(int timeout)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractTimeout()
| Method Detail |
|---|
public T execute(int timeout)
throws java.util.concurrent.TimeoutException
java.util.concurrent.TimeoutExceptionprotected abstract void commandTimeOut(T result)
result - the result objectprotected abstract T command()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||