Package com.espertech.esper.epl.expression

Examples of com.espertech.esper.epl.expression.ExprTimePeriodEvalDeltaResult


        // If we pull the interval from a variable, then we may need to reschedule
        if (parent.getTimePeriod().hasVariable())
        {
            long now = context.getStatementContext().getSchedulingService().getTime();
            ExprTimePeriodEvalDeltaResult delta = parent.getTimePeriod().nonconstEvaluator().deltaMillisecondsAddWReference(now, currentReferencePoint, null, true, context);
            if (delta.getDelta() != currentScheduledTime)
            {
                if (isCallbackScheduled)
                {
                    // reschedule
                    context.getStatementContext().getSchedulingService().remove(handle, scheduleSlot);
View Full Code Here


    private void scheduleCallback()
    {
      isCallbackScheduled = true;
        long current = context.getStatementContext().getSchedulingService().getTime();
        ExprTimePeriodEvalDeltaResult delta = parent.getTimePeriod().nonconstEvaluator().deltaMillisecondsAddWReference(current, currentReferencePoint, null, true, context);
        long afterMSec = delta.getDelta();
        currentReferencePoint = delta.getLastReference();
        currentScheduledTime = afterMSec;

        if ((ExecutionPathDebugLog.isDebugEnabled) && (log.isDebugEnabled()))
        {
            log.debug(".scheduleCallback Scheduled new callback for " +
View Full Code Here

    }

    protected void scheduleCallback()
    {
        long current = agentInstanceContext.getStatementContext().getSchedulingService().getTime();
        ExprTimePeriodEvalDeltaResult deltaWReference = timeDeltaComputation.deltaMillisecondsAddWReference(current, currentReferencePoint);
        long afterMSec = deltaWReference.getDelta();
        currentReferencePoint = deltaWReference.getLastReference();

        ScheduleHandleCallback callback = new ScheduleHandleCallback() {
            public void scheduledTrigger(ExtensionServicesContext extensionServicesContext)
            {
                if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().qViewScheduledEval(TimeBatchViewRStream.this, timeBatchViewFactory.getViewName());}
View Full Code Here

    }

    protected void scheduleCallback()
    {
        long current = agentInstanceContext.getStatementContext().getSchedulingService().getTime();
        ExprTimePeriodEvalDeltaResult deltaWReference = timeDeltaComputation.deltaMillisecondsAddWReference(current, currentReferencePoint);
        long afterMSec = deltaWReference.getDelta();
        currentReferencePoint = deltaWReference.getLastReference();

        ScheduleHandleCallback callback = new ScheduleHandleCallback() {
            public void scheduledTrigger(ExtensionServicesContext extensionServicesContext)
            {
                if (InstrumentationHelper.ENABLED) { InstrumentationHelper.get().qViewScheduledEval(TimeBatchView.this, timeBatchViewFactory.getViewName());}
View Full Code Here

                if (oldestTimestamp == null) {
                    oldestTimestamp = timestamp;
                }
                else {
                    ExprTimePeriodEvalDeltaResult delta = timeDeltaComputation.deltaMillisecondsAddWReference(oldestTimestamp, referenceTimestamp);
                    this.referenceTimestamp = delta.getLastReference();
                    if (timestamp - oldestTimestamp >= delta.getDelta()) {
                        if (batchNewData == null) {
                            batchNewData = window.toArray(new EventBean[window.size()]);
                        }
                        else {
                            batchNewData = EventBeanUtility.addToArray(batchNewData, window);
View Full Code Here

TOP

Related Classes of com.espertech.esper.epl.expression.ExprTimePeriodEvalDeltaResult

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.