public class WaitingCallBack extends Object implements Callback
Callback implementation that waits for a process to be completed.
Just run your process with this call-back, and call waitProcessCompleted().| Constructor and Description |
|---|
WaitingCallBack() |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getError() |
void |
processCompleted() |
void |
processCompletedInError(Throwable error) |
void |
waitProcessCompleted() |
public Throwable getError()
public void processCompleted()
processCompleted in interface Callbackpublic void processCompletedInError(Throwable error)
processCompletedInError in interface Callbackpublic void waitProcessCompleted()
throws InterruptedException
InterruptedExceptionCopyright © 2016. All Rights Reserved.