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

com.thebuzzmedia.exiftool.Scheduler Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show newest version
/**
 * Copyright 2011 The Buzz Media, LLC
 * Copyright 2015 Mickael Jeanroy 
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.thebuzzmedia.exiftool;

/**
 * Scheduler interface.
 *
 * Each implementation should provide implementation for:
 * 
    *
  • {@link #start(Runnable)} method: should schedule task in a specified amount of time.
  • *
  • {@link #stop()} method: should cancel future task.
  • *
* * Note that this interface does not guarantee that scheduled task will * effectively be executed. */ public interface Scheduler { /** * Schedule task. * *

* * Task should not run immediately, instead it should run * in a specified amount of time (implementation dependent). * * @param runnable Task to run. */ void start(Runnable runnable); /** * Stop pending task. */ void stop(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy