public void complete() { if (--remaining == 0) { originalCallback.receivedStatus(mostRecentStatus); originalCallback.complete(); } }
@Override protected void wasCancelled() { // XXX: Replace this comment with why I did this getCallback().receivedStatus(CANCELLED); }
public final void cancel() { cancelled=true; wasCancelled(); callback.complete(); }
/** * Decode the given payload for this command. * * @param pl the payload. */ protected void decodePayload(byte[] pl) { assert pl.length == 0 : "Payload has bytes, but decode isn't overridden"; getCallback().receivedStatus(STATUS_OK); }
public final void cancel() { cancelled=true; wasCancelled(); callback.complete(); }
@Override protected void wasCancelled() { // XXX: Replace this comment with why I did this getCallback().receivedStatus(CANCELLED); }
public void complete() { if(--remaining == 0) { originalCallback.receivedStatus(mostRecentStatus); originalCallback.complete(); } }
@Override protected void wasCancelled() { // XXX: Replace this comment with why the hell I did this. getCallback().receivedStatus(CANCELLED); }
public void complete() { if(--remaining == 0) { originalCallback.receivedStatus(mostRecentStatus); originalCallback.complete(); } }
/** * Decode the given payload for this command. * * @param pl the payload. */ protected void decodePayload(byte[] pl) { assert pl.length == 0 : "Payload has bytes, but decode isn't overridden"; getCallback().receivedStatus(STATUS_OK); }
@Override public synchronized void timeOut() { timedout = true; callback.receivedStatus(TIMED_OUT); callback.complete(); }
@Override protected void wasCancelled() { // XXX: Replace this comment with why I did this getCallback().receivedStatus(CANCELLED); }
public void complete() { if (remaining.decrementAndGet() == 0) { originalCallback.receivedStatus(mostRecentStatus); originalCallback.complete(); } }
@Override protected void wasCancelled() { // XXX: Replace this comment with why the hell I did this. getCallback().receivedStatus(CANCELLED); }
public void complete() { if (remaining.decrementAndGet() == 0) { originalCallback.receivedStatus(mostRecentStatus); originalCallback.complete(); } }
@Override protected void wasCancelled() { // XXX: Replace this comment with why the hell I did this. getCallback().receivedStatus(CANCELLED); }
public final synchronized void cancel() { cancelled = true; wasCancelled(); callback.receivedStatus(CANCELLED); callback.complete(); }
/** * Decode the given payload for this command. * * @param pl the payload. */ protected void decodePayload(byte[] pl) { assert pl.length == 0 : "Payload has bytes, but decode isn't overridden"; getCallback().receivedStatus(STATUS_OK); }
@Override public synchronized void timeOut() { timedout = true; synchronized (clones) { Iterator<Operation> i = clones.iterator(); while(i.hasNext()) { i.next().timeOut(); } } callback.receivedStatus(TIMED_OUT); callback.complete(); }
@Override protected void wasCancelled() { // XXX: Replace this comment with why I did this getCallback().receivedStatus(CANCELLED); }