All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.espertech.esper.runtime.internal.schedulesvcimpl.SchedulingServiceSPI Maven / Gradle / Ivy

/*
 ***************************************************************************************
 *  Copyright (C) 2006 EsperTech, Inc. All rights reserved.                            *
 *  http://www.espertech.com/esper                                                     *
 *  http://www.espertech.com                                                           *
 *  ---------------------------------------------------------------------------------- *
 *  The software in this package is published under the terms of the GPL license       *
 *  a copy of which has been included with this distribution in the license.txt file.  *
 ***************************************************************************************
 */
package com.espertech.esper.runtime.internal.schedulesvcimpl;

import com.espertech.esper.common.internal.schedule.SchedulingService;

import java.util.Set;

/**
 * Service provider interface for scheduling service.
 */
public interface SchedulingServiceSPI extends SchedulingService {
    /**
     * Take a statement's schedules out of the currently active set of schedules.
     *
     * @param statementId statements to take out
     * @return schedules
     */
    public ScheduleSet take(Set statementId);

    /**
     * Apply the set of schedules.
     *
     * @param scheduleSet to apply
     */
    public void apply(ScheduleSet scheduleSet);

    public Long getNearestTimeHandle();

    public void visitSchedules(ScheduleVisitor visitor);

    /**
     * Initialization is optional and provides a chance to preload things after statements are available.
     */
    public void init();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy