123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- .class public final Lio/reactivex/internal/observers/CallbackCompletableObserver;
- .super Ljava/util/concurrent/atomic/AtomicReference;
- .source "CallbackCompletableObserver.java"
- # interfaces
- .implements Lio/reactivex/CompletableObserver;
- .implements Lio/reactivex/disposables/Disposable;
- .implements Lio/reactivex/functions/Consumer;
- # annotations
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Ljava/util/concurrent/atomic/AtomicReference<",
- "Lio/reactivex/disposables/Disposable;",
- ">;",
- "Lio/reactivex/CompletableObserver;",
- "Lio/reactivex/disposables/Disposable;",
- "Lio/reactivex/functions/Consumer<",
- "Ljava/lang/Throwable;",
- ">;"
- }
- .end annotation
- # static fields
- .field private static final serialVersionUID:J = -0x3c8666afd0faa5aaL
- # instance fields
- .field final onComplete:Lio/reactivex/functions/Action;
- .field final onError:Lio/reactivex/functions/Consumer;
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Lio/reactivex/functions/Consumer<",
- "-",
- "Ljava/lang/Throwable;",
- ">;"
- }
- .end annotation
- .end field
- # direct methods
- .method public constructor <init>(Lio/reactivex/functions/Action;)V
- .locals 0
- .line 34
- invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
- .line 35
- iput-object p0, p0, Lio/reactivex/internal/observers/CallbackCompletableObserver;->onError:Lio/reactivex/functions/Consumer;
- .line 36
- iput-object p1, p0, Lio/reactivex/internal/observers/CallbackCompletableObserver;->onComplete:Lio/reactivex/functions/Action;
- return-void
- .end method
- .method public constructor <init>(Lio/reactivex/functions/Consumer;Lio/reactivex/functions/Action;)V
- .locals 0
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Lio/reactivex/functions/Consumer<",
- "-",
- "Ljava/lang/Throwable;",
- ">;",
- "Lio/reactivex/functions/Action;",
- ")V"
- }
- .end annotation
- .line 39
- invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
- .line 40
- iput-object p1, p0, Lio/reactivex/internal/observers/CallbackCompletableObserver;->onError:Lio/reactivex/functions/Consumer;
- .line 41
- iput-object p2, p0, Lio/reactivex/internal/observers/CallbackCompletableObserver;->onComplete:Lio/reactivex/functions/Action;
- return-void
- .end method
- # virtual methods
- .method public bridge synthetic accept(Ljava/lang/Object;)V
- .locals 0
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/lang/Exception;
- }
- .end annotation
- .line 25
- check-cast p1, Ljava/lang/Throwable;
- invoke-virtual {p0, p1}, Lio/reactivex/internal/observers/CallbackCompletableObserver;->accept(Ljava/lang/Throwable;)V
- return-void
- .end method
- .method public accept(Ljava/lang/Throwable;)V
- .locals 0
- .line 46
- invoke-static {p1}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
- return-void
- .end method
- .method public dispose()V
- .locals 0
- .line 79
- invoke-static {p0}, Lio/reactivex/internal/disposables/DisposableHelper;->dispose(Ljava/util/concurrent/atomic/AtomicReference;)Z
- return-void
- .end method
- .method public isDisposed()Z
- .locals 2
- .line 84
- invoke-virtual {p0}, Lio/reactivex/internal/observers/CallbackCompletableObserver;->get()Ljava/lang/Object;
- move-result-object v0
- sget-object v1, Lio/reactivex/internal/disposables/DisposableHelper;->DISPOSED:Lio/reactivex/internal/disposables/DisposableHelper;
- if-ne v0, v1, :cond_0
- const/4 v0, 0x1
- goto :goto_0
- :cond_0
- const/4 v0, 0x0
- :goto_0
- return v0
- .end method
- .method public onComplete()V
- .locals 1
- .line 52
- :try_start_0
- iget-object v0, p0, Lio/reactivex/internal/observers/CallbackCompletableObserver;->onComplete:Lio/reactivex/functions/Action;
- invoke-interface {v0}, Lio/reactivex/functions/Action;->run()V
- :try_end_0
- .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
- .line 58
- sget-object v0, Lio/reactivex/internal/disposables/DisposableHelper;->DISPOSED:Lio/reactivex/internal/disposables/DisposableHelper;
- invoke-virtual {p0, v0}, Lio/reactivex/internal/observers/CallbackCompletableObserver;->lazySet(Ljava/lang/Object;)V
- return-void
- :catch_0
- move-exception v0
- .line 54
- invoke-static {v0}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
- .line 55
- invoke-virtual {p0, v0}, Lio/reactivex/internal/observers/CallbackCompletableObserver;->onError(Ljava/lang/Throwable;)V
- return-void
- .end method
- .method public onError(Ljava/lang/Throwable;)V
- .locals 1
- .line 64
- :try_start_0
- iget-object v0, p0, Lio/reactivex/internal/observers/CallbackCompletableObserver;->onError:Lio/reactivex/functions/Consumer;
- invoke-interface {v0, p1}, Lio/reactivex/functions/Consumer;->accept(Ljava/lang/Object;)V
- :try_end_0
- .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
- goto :goto_0
- :catch_0
- move-exception p1
- .line 66
- invoke-static {p1}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
- .line 67
- invoke-static {p1}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
- .line 69
- :goto_0
- sget-object p1, Lio/reactivex/internal/disposables/DisposableHelper;->DISPOSED:Lio/reactivex/internal/disposables/DisposableHelper;
- invoke-virtual {p0, p1}, Lio/reactivex/internal/observers/CallbackCompletableObserver;->lazySet(Ljava/lang/Object;)V
- return-void
- .end method
- .method public onSubscribe(Lio/reactivex/disposables/Disposable;)V
- .locals 0
- .line 74
- invoke-static {p0, p1}, Lio/reactivex/internal/disposables/DisposableHelper;->setOnce(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/disposables/Disposable;)Z
- return-void
- .end method
|