Пример #1
0
 public static void sendDelayed(Object event, long delayMillis) {
   if (bus == null) {
     from(Ioc.getIoc().getApplication());
     if (bus == null) {
       throw new NullPointerException("TinyBus Need to initialize");
     }
   }
   bus.postDelayed(event, delayMillis);
 }
Пример #2
0
 public static void send(Object event) {
   if (bus == null) {
     from(Ioc.getIoc().getApplication());
     if (bus == null) {
       throw new NullPointerException("TinyBus Need to initialize");
     }
   }
   bus.post(event);
 }