/**
* @return request ID
*/
- public int getRequestId();
+ public long getRequestId();
/**
* @return the index of the first event requested
// Request state
// ------------------------------------------------------------------------
- public boolean isRunning();
public boolean isCompleted();
public boolean isFailed();
public boolean isCancelled();
// Request handling
// ------------------------------------------------------------------------
- public void handleStarted();
public void handleCompleted();
public void handleSuccess();
public void handleFailure();
* To suspend the client thread until the request completes
* (or is canceled).
*/
- public void waitForCompletion() throws InterruptedException;
+ public void waitForCompletion();
// ------------------------------------------------------------------------
// Request state modifiers
// ------------------------------------------------------------------------
- public void start();
public void done();
public void fail();
public void cancel();