/*
 * COPYRIGHT (c) 1998-1999 Jan-Henrik Haukeland, http://www.tildeslash.com/
 */

package ts.biff;


/** 
 * Defines standard callbacks for classes that would like to know if
 * the application is about to terminate. Objects that implement this
 * interface can be managed by a TerminateController object. 
 * <P>
 * Typical implementors of this class should be classes that often do
 * critical stuff which should be alowed to finnish before the VM is
 * terminated.
 * 
 * @author  Jan-Henrik Haukeland &lt; hauk@tildeslashcom&gt;
 * @version $Id: SafeTerminate.java,v 1.6 1999/02/21 08:47:04 hauk Exp $
 *
 * @see TerminateController 
 * @see ts.mail.FetchAgent 
 */
public interface SafeTerminate
{
  /**
   * Called when the application is about to terminate. Should return
   * false if it's a very bad time to do just that.
   *
   * @return false if termination should be avoided at this time
   */
  public boolean canTerminate();

}
