Package com.espertech.esper.client.time

Examples of com.espertech.esper.client.time.CurrentTimeEvent


        if ((ExecutionPathDebugLog.isDebugEnabled) && (log.isDebugEnabled() && (ExecutionPathDebugLog.isTimerDebugEnabled)))
        {
            log.debug(".timerCallback Evaluating scheduled callbacks, time is " + msec);
        }

        CurrentTimeEvent currentTimeEvent = new CurrentTimeEvent(msec);
        sendEvent(currentTimeEvent);
    }
View Full Code Here


            return;
        }

        if (event instanceof CurrentTimeEvent) {
            CurrentTimeEvent current = (CurrentTimeEvent) event;
            long currentTime = current.getTimeInMillis();

            // Evaluation of all time events is protected from statement management
            if ((ExecutionPathDebugLog.isDebugEnabled) && (log.isDebugEnabled()) && (ExecutionPathDebugLog.isTimerDebugEnabled))
            {
                log.debug(".processTimeEvent Setting time and evaluating schedules for time " + currentTime);
View Full Code Here

        if ((ExecutionPathDebugLog.isDebugEnabled) && (log.isDebugEnabled() && (ExecutionPathDebugLog.isTimerDebugEnabled)))
        {
            log.debug(".timerCallback Evaluating scheduled callbacks, time is " + msec);
        }

        CurrentTimeEvent currentTimeEvent = new CurrentTimeEvent(msec);
        sendEvent(currentTimeEvent);
    }
View Full Code Here

            return;
        }

        if (theEvent instanceof CurrentTimeEvent) {
            CurrentTimeEvent current = (CurrentTimeEvent) theEvent;
            long currentTime = current.getTimeInMillis();

            // Evaluation of all time events is protected from statement management
            if ((ExecutionPathDebugLog.isDebugEnabled) && (log.isDebugEnabled()) && (ExecutionPathDebugLog.isTimerDebugEnabled))
            {
                log.debug(".processTimeEvent Setting time and evaluating schedules for time " + currentTime);
View Full Code Here

      {
        long currentEventTime = eventsToSend.first().getSendTime();
        // check whether time has increased. Cannot go backwards due to checks elsewhere
        if (currentEventTime > lastEventTime)
        {
          this.sender.sendEvent(null, new CurrentTimeEvent(lastEventTime));
          lastEventTime = currentEventTime;
        }
        sendFirstEvent();
      }
      // send final time processTimeEvent
      this.sender.sendEvent(null, new CurrentTimeEvent(lastEventTime));
    }
    else
    {
      // watch time and send events to catch up
      while(!eventsToSend.isEmpty() && eventsToSend.first().getSendTime() <= currentTime - startTime)
View Full Code Here

        {
            log.debug(".processTimeEvent Setting time and evaluating schedules");
        }

        if (theEvent instanceof CurrentTimeEvent) {
            CurrentTimeEvent current = (CurrentTimeEvent) theEvent;
            long currentTime = current.getTimeInMillis();

            if (currentTime == services.getSchedulingService().getTime())
            {
                if (log.isWarnEnabled())
                {
View Full Code Here

        {
            log.debug(".processTimeEvent Setting time and evaluating schedules");
        }

        if (event instanceof CurrentTimeEvent) {
            CurrentTimeEvent current = (CurrentTimeEvent) event;
            long currentTime = current.getTimeInMillis();

            if (currentTime == services.getSchedulingService().getTime())
            {
                if (log.isWarnEnabled())
                {
View Full Code Here

        if ((ExecutionPathDebugLog.isDebugEnabled) && (log.isDebugEnabled() && (ExecutionPathDebugLog.isTimerDebugEnabled)))
        {
            log.debug(".timerCallback Evaluating scheduled callbacks, time is " + msec);
        }

        CurrentTimeEvent currentTimeEvent = new CurrentTimeEvent(msec);
        sendEvent(currentTimeEvent);
    }
View Full Code Here

            return;
        }

        if (event instanceof CurrentTimeEvent) {
            CurrentTimeEvent current = (CurrentTimeEvent) event;
            long currentTime = current.getTimeInMillis();

            // Evaluation of all time events is protected from statement management
            if ((ExecutionPathDebugLog.isDebugEnabled) && (log.isDebugEnabled()) && (ExecutionPathDebugLog.isTimerDebugEnabled))
            {
                log.debug(".processTimeEvent Setting time and evaluating schedules for time " + currentTime);
View Full Code Here

      {
        long currentEventTime = eventsToSend.first().getSendTime();
        // check whether time has increased. Cannot go backwards due to checks elsewhere
        if (currentEventTime > lastEventTime)
        {
          this.sender.sendEvent(null, new CurrentTimeEvent(lastEventTime));
          lastEventTime = currentEventTime;
        }
        sendFirstEvent();
      }
      // send final time processTimeEvent
      this.sender.sendEvent(null, new CurrentTimeEvent(lastEventTime));
    }
    else
    {
      // watch time and send events to catch up
      while(!eventsToSend.isEmpty() && eventsToSend.first().getSendTime() <= currentTime - startTime)
View Full Code Here

TOP

Related Classes of com.espertech.esper.client.time.CurrentTimeEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.