Example #1
0
 /**
  * 发送事件
  *
  * @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);
     }
   }
 }
Example #2
0
 @Override
 public void onNext(V args) {
   publish.onNext(args);
 }
 public void write(HystrixCommandCompletion event) {
   writeOnlySubject.onNext(event);
 }
Example #4
0
 public void send(Object o) {
   _bus.onNext(o);
 }
 @Override
 public void onNext(T args) {
   subject.onNext(args);
 }
Example #6
0
 public void send(Object o) {
   LLog.d("RxBus send: " + o.toString());
   _bus.onNext(o);
 }