001 package com.croftsoft.core.util.loop;
002
003 /*********************************************************************
004 * Regulates the loop frequency by putting the Thread to sleep.
005 *
006 * @version
007 * 2002-05-22
008 * @since
009 * 2002-03-07
010 * @author
011 * <a href="http://www.CroftSoft.com/">David Wallace Croft</a>
012 *********************************************************************/
013
014 public interface LoopGovernor
015 //////////////////////////////////////////////////////////////////////
016 //////////////////////////////////////////////////////////////////////
017 {
018
019 /*********************************************************************
020 * This method puts the Thread to sleep for a limited time.
021 *********************************************************************/
022 public void govern ( )
023 throws InterruptedException;
024
025 //////////////////////////////////////////////////////////////////////
026 //////////////////////////////////////////////////////////////////////
027 }