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

com.fredhopper.lifecycle.Resumable Maven / Gradle / Ivy

The newest version!
package com.fredhopper.lifecycle;

/**
 * A resumable can be paused and resumed.
 */
public interface Resumable {

  /**
   * Makes an attempt to pause the resumable.
   * 
   * @throws Exception if the resumable cannot be paused and an
   *         exception is necessary.
   */
  void pause() throws Exception;

  /**
   * Makes an attempt to resume a paused resumable.
   * 
   * @throws Exception if the resumable cannot be resumed. The
   *         exception could be also because of invalid states.
   */
  void resume() throws Exception;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy