@Override public Value<Integer> run(String unblockTheAngryOneHandle) throws Exception { trace("JobToGetCancellationInHandleException.run"); // Unblocks a sibling that is going to throw an exception PipelineManager.acceptPromisedValue(unblockTheAngryOneHandle, EXPECTED_RESULT1); throw new IllegalStateException("simulated"); }
@Override public Value<Integer> run(String unblockTheAngryOneHandle) throws Exception { trace("ParentOfJobToCancel.run"); // Unblocks a sibling that is going to throw an exception PipelineManager.acceptPromisedValue(unblockTheAngryOneHandle, EXPECTED_RESULT1); PromisedValue<Integer> neverReady = newPromise(Integer.class); return futureCall(new JobToCancel(), neverReady); }
@Override public Value<Integer> run(String unblockHandle) throws Exception { trace("UnblockAndThrowJob.run"); PipelineManager.acceptPromisedValue(unblockHandle, EXPECTED_RESULT1); throw new IllegalStateException("simulated"); }