@Override public void doAsync( final AsyncRequestImpl _asyncRequestImpl, final AsyncResponseProcessor<RESPONSE_TYPE> _asyncResponseProcessor) throws Exception { if (!_asyncRequestImpl.getTargetReactor().asReactorImpl().isRunning()) throw new IllegalStateException("Not thread safe: not called from within an active request"); processAsyncOperation(_asyncRequestImpl, _asyncResponseProcessor); }
@Override public void onClose(@SuppressWarnings("rawtypes") final AsyncRequestImpl _asyncRequestImpl) { _asyncRequestImpl.onClose(_asyncRequestImpl); }
/** * Cancels all outstanding requests. This method is thread safe, so it can be called from any * thread. */ public void cancelAll(@SuppressWarnings("rawtypes") final AsyncRequestImpl _asyncRequestImpl) { _asyncRequestImpl.cancelAll(); }