The event listener actually has only a subset of the functionality provided by RxJava , and what exactly is the problem that it is trying to solve:
But back to a few steps, it’s easier to understand that Observable , if you compare it with Iterator (push vs. pull).
Iterator.next() Observable.onNext() - / - .
Iterator.hasNext() Observable.onComplete() - , ( , EventListener).
, Observable.onError() , Iterator, next() remove(), , NoSuchElementException, UnsupportedOperationException IllegalStateException, , .
, , -/, . onError() - , , Observable .
, Reactive Java , . ( , , ..), , , , , (, -loops) callback-hell.