congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AsyncSubject.onError
Code IndexAdd Tabnine to your IDE (free)

How to use
onError
method
in
rx.subjects.AsyncSubject

Best Java code snippets using rx.subjects.AsyncSubject.onError (Showing top 20 results out of 315)

origin: ws.wamp.jawampa/jawampa-core

void clearPendingRequests(Throwable e) {
  for (Entry<Long, RequestMapEntry> entry : requestMap.entrySet()) {
    entry.getValue().resultSubject.onError(e);
  }
  requestMap.clear();
}
 
origin: greenaddress/GreenBits

void clearPendingRequests(Throwable e) {
  for (Entry<Long, RequestMapEntry> entry : requestMap.entrySet()) {
    entry.getValue().resultSubject.onError(e);
  }
  requestMap.clear();
}

origin: greenaddress/GreenBits

void clearPendingRequests(Throwable e) {
  for (Entry<Long, RequestMapEntry> entry : requestMap.entrySet()) {
    entry.getValue().resultSubject.onError(e);
  }
  requestMap.clear();
}

origin: dswarm/dswarm

@Override public void onError(final Throwable e) {
  if (!seenFirstModel.get()) {
    responseAsyncSubject.onError(e);
  }
  subscriber.onError(e);
}
origin: greenaddress/GreenBits

  @Override
  public void run() {
    if (!(stateController.currentState() instanceof SessionEstablishedState)) {
      resultSubject.onError(new ApplicationError(ApplicationError.NOT_CONNECTED));
      return;
    }
    // Forward performing actual call into the session
    SessionEstablishedState curState = (SessionEstablishedState)stateController.currentState();
    curState.performCall(procedure, flags, arguments, argumentsKw, resultSubject);
  }
});
origin: dswarm/dswarm

resourcePublishSubject.doOnError(e1 -> responseAsyncSubject.onError(e1))
    .subscribe(resourceObserver);
origin: greenaddress/GreenBits

  @Override
  public void run() {
    if (!(stateController.currentState() instanceof SessionEstablishedState)) {
      resultSubject.onError(new ApplicationError(ApplicationError.NOT_CONNECTED));
      return;
    }
    // Forward publish into the session
    SessionEstablishedState curState = (SessionEstablishedState)stateController.currentState();
    curState.performPublish(topic, flags, arguments, argumentsKw, resultSubject);
    
  }
});
origin: greenaddress/GreenBits

  @Override
  public void run() {
    if (!(stateController.currentState() instanceof SessionEstablishedState)) {
      resultSubject.onError(new ApplicationError(ApplicationError.NOT_CONNECTED));
      return;
    }
    // Forward publish into the session
    SessionEstablishedState curState = (SessionEstablishedState)stateController.currentState();
    curState.performPublish(topic, flags, arguments, argumentsKw, resultSubject);
    
  }
});
origin: ws.wamp.jawampa/jawampa-core

  @Override
  public void run() {
    if (!(stateController.currentState() instanceof SessionEstablishedState)) {
      resultSubject.onError(new ApplicationError(ApplicationError.NOT_CONNECTED));
      return;
    }
    // Forward performing actual call into the session
    SessionEstablishedState curState = (SessionEstablishedState)stateController.currentState();
    curState.performCall(procedure, flags, arguments, argumentsKw, resultSubject);
  }
});
origin: ws.wamp.jawampa/jawampa-core

  @Override
  public void run() {
    if (!(stateController.currentState() instanceof SessionEstablishedState)) {
      resultSubject.onError(new ApplicationError(ApplicationError.NOT_CONNECTED));
      return;
    }
    // Forward publish into the session
    SessionEstablishedState curState = (SessionEstablishedState)stateController.currentState();
    curState.performPublish(topic, flags, arguments, argumentsKw, resultSubject);
    
  }
});
origin: greenaddress/GreenBits

  @Override
  public void run() {
    if (!(stateController.currentState() instanceof SessionEstablishedState)) {
      resultSubject.onError(new ApplicationError(ApplicationError.NOT_CONNECTED));
      return;
    }
    // Forward performing actual call into the session
    SessionEstablishedState curState = (SessionEstablishedState)stateController.currentState();
    curState.performCall(procedure, flags, arguments, argumentsKw, resultSubject);
  }
});
origin: ws.wamp.jawampa/jawampa-core

resultSubject.onError(e);
return resultSubject;
resultSubject.onError(
  new ApplicationError(ApplicationError.CLIENT_CLOSED));
origin: ws.wamp.jawampa/jawampa-core

resultSubject.onError(e);
return resultSubject;
resultSubject.onError(
  new ApplicationError(ApplicationError.CLIENT_CLOSED));
origin: greenaddress/GreenBits

resultSubject.onError(e);
return resultSubject;
origin: greenaddress/GreenBits

resultSubject.onError(e);
return resultSubject;
origin: greenaddress/GreenBits

resultSubject.onError(e);
return resultSubject;
origin: Petikoch/Java_MVVM_with_Swing_and_RxJava_Examples

},
throwable -> {
  resultSubject.onError(throwable);
  resultSubject.onCompleted();
origin: ws.wamp.jawampa/jawampa-core

requestInfo.resultSubject.onError(err);
origin: greenaddress/GreenBits

requestInfo.resultSubject.onError(err);
origin: CasterIO/RxExamples

@OnClick(R.id.async_subject_test_error)
public void onAsyncSubjectTestWithErrorClick() {
  unsubscribe();
  createSubscription();
  AsyncSubject<Stock> stockAsyncSubject = AsyncSubject.create();
  stockAsyncSubject.onNext(new Stock(GOOG, 722));
  // Will get the last value (GOOG, 723) and all future items and terminal events
  Subscription subscription = stockAsyncSubject.subscribe(getDefaultSubscriber());
  compositeSubscription.add(subscription);
  stockAsyncSubject.onNext(new Stock(GOOG, 723));
  stockAsyncSubject.onNext(new Stock(GOOG, 100));
  stockAsyncSubject.onNext(new Stock(GOOG, 699));
  stockAsyncSubject.onError(new Exception("Boom!")); // current and future subscribers will only receive this, with NO items emitted.
  Subscription tardySubscription = stockAsyncSubject.subscribe(getTardySubscriber());
  compositeSubscription.add(tardySubscription);
}
rx.subjectsAsyncSubjectonError

Popular methods of AsyncSubject

  • create
    Creates and returns a new AsyncSubject.
  • onCompleted
  • onNext
  • observeOn
  • subscribe
  • <init>
  • asObservable
  • doOnUnsubscribe
  • onBackpressureBuffer

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now