com.cmonbaby.http.rxjava.bus.RxBus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http_lower Show documentation
Show all versions of http_lower Show documentation
Android Http Core Library
package com.cmonbaby.http.rxjava.bus;
import rx.Observable;
import rx.subjects.PublishSubject;
import rx.subjects.SerializedSubject;
import rx.subjects.Subject;
/**
* Author: Simon
*
QO: 8950764
*
Email: [email protected]
*
WebSize: https://www.cmonbaby.com
*
Version: 1.0.0
*
Date: 2020/12/28
*
Description: 用于替换EventBus的RxBus实现,同时用做Http响应数据的分发
*/
public class RxBus {
private static volatile RxBus mInstance;
// PublishSubject只会把在订阅发生的时间点之后来自原始Observable的数据发射给观察者
private final Subject
© 2015 - 2025 Weber Informatics LLC | Privacy Policy