/** * Terminate the future. */ public void terminate(final Exception reason) { func.terminate(reason, new IResultListener<Void>() { public void resultAvailable(Void v) { DelegatingSubscriptionIntermediateDelegationFuture.super.terminate(reason); } public void exceptionOccurred(Exception exception) { // Hack!!! termination in functionality failed -> should change result of future to failure? func.getLogger().warning("Exception when terminating future: "+exception); DelegatingSubscriptionIntermediateDelegationFuture.super.terminate(reason); } }); }
/** * Terminate the future. */ public void terminate(final Exception reason) { func.terminate(reason, new IResultListener<Void>() { public void resultAvailable(Void v) { DelegatingPullIntermediateDelegationFuture.super.terminate(reason); } public void exceptionOccurred(Exception exception) { // Hack!!! termination in functionality failed -> should change result of future to failure? func.getLogger().warning("Exception when terminating future: "+exception); DelegatingPullIntermediateDelegationFuture.super.terminate(reason); } }); }
/** * Terminate the future. */ public void terminate(final Exception reason) { func.terminate(reason, new IResultListener<Void>() { public void resultAvailable(Void v) { DelegatingPullSubscriptionIntermediateDelegationFuture.super.terminate(reason); } public void exceptionOccurred(Exception exception) { // Hack!!! termination in functionality failed -> should change result of future to failure? func.getLogger().warning("Exception when terminating future: "+exception); DelegatingPullSubscriptionIntermediateDelegationFuture.super.terminate(reason); } }); }
/** * Terminate the future. */ public void terminate(final Exception reason) { func.terminate(reason, new IResultListener<Void>() { public void resultAvailable(Void v) { DelegatingTerminableIntermediateDelegationFuture.super.terminate(reason); } public void exceptionOccurred(Exception exception) { // Hack!!! termination in functionality failed -> should change result of future to failure? Logger.getAnonymousLogger().warning("Exception when terminating future: "+exception); DelegatingTerminableIntermediateDelegationFuture.super.terminate(reason); } }); }
/** * Terminate the future. */ public void terminate(final Exception reason) { func.terminate(reason, new IResultListener<Void>() { public void resultAvailable(Void result) { DelegatingTerminableDelegationFuture.super.terminate(reason); } public void exceptionOccurred(Exception exception) { // Hack!!! termination in functionality failed -> should change result of future to failure? func.getLogger().warning("Exception when terminating future: "+exception); DelegatingTerminableDelegationFuture.super.terminate(reason); } }); }
public void terminate(Exception reason, IResultListener<Void> terminate) { System.out.println("terminated call: "+fgoal); ip.dropGoal(fgoal); super.terminate(reason, terminate); } });