@Component public class GraphqlProviderObserver extends Object implements io.reactivex.Observer<List<TpDocGraphqlProviderServiceInfo>>
| 构造器和说明 |
|---|
GraphqlProviderObserver() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onComplete()
Notifies the Observer that the
Observable has finished sending push-based notifications. |
void |
onError(Throwable e)
Notifies the Observer that the
Observable has experienced an error condition. |
void |
onNext(List<TpDocGraphqlProviderServiceInfo> tpDocGraphqlProviderServiceInfos)
Provides the Observer with a new item to observe.
|
void |
onSubscribe(io.reactivex.disposables.Disposable d)
Provides the Observer with the means of cancelling (disposing) the
connection (channel) with the Observable in both
synchronous (from within
Observer.onNext(Object)) and asynchronous manner. |
public void onSubscribe(@NonNull
io.reactivex.disposables.Disposable d)
Observer.onNext(Object)) and asynchronous manner.onSubscribe 在接口中 io.reactivex.Observer<List<TpDocGraphqlProviderServiceInfo>>d - the Disposable instance whose Disposable.dispose() can
be called anytime to cancel the connectionpublic void onNext(@NonNull
List<TpDocGraphqlProviderServiceInfo> tpDocGraphqlProviderServiceInfos)
The Observable may call this method 0 or more times.
The Observable will not call this method again after it calls either onComplete() or
onError(java.lang.Throwable).
onNext 在接口中 io.reactivex.Observer<List<TpDocGraphqlProviderServiceInfo>>tpDocGraphqlProviderServiceInfos - the item emitted by the Observablepublic void onError(@NonNull
Throwable e)
Observable has experienced an error condition.
If the Observable calls this method, it will not thereafter call onNext(java.util.List<com.duoec.graphql.provider.dto.TpDocGraphqlProviderServiceInfo>) or
onComplete().
onError 在接口中 io.reactivex.Observer<List<TpDocGraphqlProviderServiceInfo>>e - the exception encountered by the Observablepublic void onComplete()
Observable has finished sending push-based notifications.
The Observable will not call this method if it calls onError(java.lang.Throwable).
onComplete 在接口中 io.reactivex.Observer<List<TpDocGraphqlProviderServiceInfo>>Copyright © 2020. All rights reserved.