Exemplo n.º 1
0
 /**
  * Timestamp event. A timestamped event cannot subsequently being posted and is useful only to
  * pass its timestamp on to another posted event.
  */
 public void timestamp(BuckEvent event) {
   event.configure(clock.currentTimeMillis(), clock.nanoTime(), threadIdSupplier.get(), buildId);
 }
Exemplo n.º 2
0
 /** Post event to the EventBus using the timestamp given by atTime. */
 public void post(BuckEvent event, BuckEvent atTime) {
   event.configure(atTime.getTimestamp(), atTime.getNanoTime(), threadIdSupplier.get(), buildId);
   dispatch(event);
 }