Community
Participate
Working Groups
// another request that we now need to process
RequestMonitor sequenceCompletedRm = new RequestMonitor(getExecutor(), null) {
@Override
protected void handleCompleted() {
protected void handleSuccess() {
fOngoingOperation = false;
if (fOperationsPending.size() > 0) {
}
// no other rm.done() needs to be called, they have all been handled already
protected void handleFailure() {
// If the sequence failed, we have to give up on the operation(s).
// If we don't, we risk an infinite loop where we try, over and over
// to perform an operation that keeps on failing.
fOperationsPending.clear();
super.handleFailure();
};
getExecutor().execute(new Sequence(getExecutor(), sequenceCompletedRm) {