コード例 #1
0
 public SingleThreadEntryValve(
     ExecutionPlanContext executionPlanContext, InputProcessor inputProcessor) {
   this.lock = executionPlanContext.getSharedLock();
   if (lock == null) {
     lock = new ReentrantLock();
   }
   this.inputProcessor = inputProcessor;
 }
コード例 #2
0
 private void sendEvent() {
   long currentTime = executionPlanContext.getTimestampGenerator().currentTime();
   streamJunction.sendEvent(new Event(currentTime, new Object[] {currentTime}));
 }