/** * 发送事件 * * @param tag 标签 * @param content 发送的内容 */ @SuppressWarnings("unchecked") public void post(@NonNull Object tag, @NonNull Object content) { final List<Subject> subjectList = subjectMapper.get(tag); if (null != subjectList && !subjectList.isEmpty()) { for (Subject subject : subjectList) { subject.onNext(content); } } }
@Override public void onNext(V args) { publish.onNext(args); }
public void write(HystrixCommandCompletion event) { writeOnlySubject.onNext(event); }
public void send(Object o) { _bus.onNext(o); }
@Override public void onNext(T args) { subject.onNext(args); }
public void send(Object o) { LLog.d("RxBus send: " + o.toString()); _bus.onNext(o); }