コード例 #1
0
ファイル: BuckEventBus.java プロジェクト: rowillia/buck
 /**
  * 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);
 }
コード例 #2
0
ファイル: BuckEventBus.java プロジェクト: rowillia/buck
 /** 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);
 }