Exemple #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);
 }
Exemple #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);
 }