|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Future
A Future represents the result of an asynchronous task.
Method Summary | |
---|---|
void |
addListener(FutureListener listener)
Add future listener. |
boolean |
complete()
Waits if necessary for the task to complete. |
boolean |
complete(int timeout)
Waits if necessary for the task to complete or the timeout period has expired. |
Session |
getSession()
Get session associated with the future. |
boolean |
isCompleted()
Return true if the task completed. |
boolean |
isSucceeded()
Return true if the task completed successful. |
void |
removeListener(FutureListener listener)
Remove future listener. |
Method Detail |
---|
Session getSession()
boolean complete()
boolean complete(int timeout)
timeout
- timeout
boolean isCompleted()
boolean isSucceeded()
void addListener(FutureListener listener)
listener
- future listenervoid removeListener(FutureListener listener)
listener
- future listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |