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