@Override public void cancel() { try { if (callback != null) { callback.canceled(); } } finally { writable.set(true); } } };
@Override public void complete() { try { // Update the state updateState(identity.getName(), this, internalComplete()); writable.set(true); } catch (Exception e) { cancel(); throw new RuntimeException(e); } if (callback != null) { callback.completed(); } }
@Override public void complete() { try { // Update the state updateState(identity.getName(), this, internalComplete()); writable.set(true); } catch (Exception e) { cancel(); throw new RuntimeException(e); } if (callback != null) { callback.completed(); } }
@Override public void cancel() { try { if (callback != null) { callback.canceled(); } } finally { writable.set(true); } } };