Example #1
0
 @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);
 }
Example #2
0
 @Override
 public void onClose(@SuppressWarnings("rawtypes") final AsyncRequestImpl _asyncRequestImpl) {
   _asyncRequestImpl.onClose(_asyncRequestImpl);
 }
Example #3
0
 /**
  * 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();
 }