protected void cancel( boolean mayInterruptIfRunning ) { for (CompositeRequestChannel channel : channelBySourceName.values()) { channel.cancel(mayInterruptIfRunning); } } }
private void cancelAllRequestsDueToError( Throwable t ) { LOGGER.error(t, GraphI18n.executingRequest, sourceName); try { for (Request request : this.composite.getRequests()) { try { request.cancel(); } finally { request.freeze(); } } cancel(true); } finally { this.composite.freeze(); } }