org.apache.ws.util.timer
Class TimerManagerImpl

java.lang.Object
  extended byorg.apache.ws.util.timer.TimerManagerImpl
All Implemented Interfaces:
commonj.timers.TimerManager

public class TimerManagerImpl
extends java.lang.Object
implements commonj.timers.TimerManager

LOG-DONE DOCUMENT_ME

Version:
$Revision: 1.7 $
Author:
$author$

Field Summary
static Messages MSG
           
 
Fields inherited from interface commonj.timers.TimerManager
IMMEDIATE, INDEFINITE
 
Constructor Summary
TimerManagerImpl()
          Creates a new TimerManagerImpl object.
 
Method Summary
 int getPoolSize()
          DOCUMENT_ME
 boolean isStopped()
          DOCUMENT_ME
 boolean isStopping()
          DOCUMENT_ME
 boolean isSuspended()
          DOCUMENT_ME
 boolean isSuspending()
           
protected  void removeTask(java.lang.Object task)
          DOCUMENT_ME
 void resume()
          DOCUMENT_ME
 commonj.timers.Timer schedule(commonj.timers.TimerListener listener, java.util.Date time)
          DOCUMENT_ME
 commonj.timers.Timer schedule(commonj.timers.TimerListener listener, java.util.Date firstTime, long period)
          DOCUMENT_ME
 commonj.timers.Timer schedule(commonj.timers.TimerListener listener, long delay)
          DOCUMENT_ME
 commonj.timers.Timer schedule(commonj.timers.TimerListener listener, long delay, long period)
          DOCUMENT_ME
 commonj.timers.Timer scheduleAtFixedRate(commonj.timers.TimerListener listener, java.util.Date firstTime, long period)
          DOCUMENT_ME
 commonj.timers.Timer scheduleAtFixedRate(commonj.timers.TimerListener listener, long delay, long period)
          DOCUMENT_ME
 void setPoolSize(int poolSize)
          DOCUMENT_ME
 void stop()
          DOCUMENT_ME
 void suspend()
          DOCUMENT_ME
 boolean waitForStop(long timeout_ms)
          DOCUMENT_ME
 boolean waitForSuspend(long timeout_ms)
          DOCUMENT_ME
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG

public static final Messages MSG
Constructor Detail

TimerManagerImpl

public TimerManagerImpl()
Creates a new TimerManagerImpl object.

Method Detail

setPoolSize

public void setPoolSize(int poolSize)
DOCUMENT_ME

Parameters:
poolSize - DOCUMENT_ME

getPoolSize

public int getPoolSize()
DOCUMENT_ME

Returns:
DOCUMENT_ME

isStopped

public boolean isStopped()
DOCUMENT_ME

Specified by:
isStopped in interface commonj.timers.TimerManager
Returns:
DOCUMENT_ME

isStopping

public boolean isStopping()
DOCUMENT_ME

Specified by:
isStopping in interface commonj.timers.TimerManager
Returns:
DOCUMENT_ME

isSuspended

public boolean isSuspended()
                    throws java.lang.IllegalStateException
DOCUMENT_ME

Specified by:
isSuspended in interface commonj.timers.TimerManager
Returns:
DOCUMENT_ME
Throws:
java.lang.IllegalStateException - DOCUMENT_ME

isSuspending

public boolean isSuspending()
                     throws java.lang.IllegalStateException
Specified by:
isSuspending in interface commonj.timers.TimerManager
Throws:
java.lang.IllegalStateException

resume

public void resume()
DOCUMENT_ME

Specified by:
resume in interface commonj.timers.TimerManager

schedule

public commonj.timers.Timer schedule(commonj.timers.TimerListener listener,
                                     java.util.Date firstTime,
                                     long period)
DOCUMENT_ME

Specified by:
schedule in interface commonj.timers.TimerManager
Parameters:
listener - DOCUMENT_ME
firstTime - DOCUMENT_ME
period - DOCUMENT_ME
Returns:
DOCUMENT_ME

schedule

public commonj.timers.Timer schedule(commonj.timers.TimerListener listener,
                                     java.util.Date time)
DOCUMENT_ME

Specified by:
schedule in interface commonj.timers.TimerManager
Parameters:
listener - DOCUMENT_ME
time - DOCUMENT_ME
Returns:
DOCUMENT_ME

schedule

public commonj.timers.Timer schedule(commonj.timers.TimerListener listener,
                                     long delay,
                                     long period)
DOCUMENT_ME

Specified by:
schedule in interface commonj.timers.TimerManager
Parameters:
listener - DOCUMENT_ME
delay - DOCUMENT_ME
period - DOCUMENT_ME
Returns:
DOCUMENT_ME

schedule

public commonj.timers.Timer schedule(commonj.timers.TimerListener listener,
                                     long delay)
DOCUMENT_ME

Specified by:
schedule in interface commonj.timers.TimerManager
Parameters:
listener - DOCUMENT_ME
delay - DOCUMENT_ME
Returns:
DOCUMENT_ME

scheduleAtFixedRate

public commonj.timers.Timer scheduleAtFixedRate(commonj.timers.TimerListener listener,
                                                java.util.Date firstTime,
                                                long period)
DOCUMENT_ME

Specified by:
scheduleAtFixedRate in interface commonj.timers.TimerManager
Parameters:
listener - DOCUMENT_ME
firstTime - DOCUMENT_ME
period - DOCUMENT_ME
Returns:
DOCUMENT_ME

scheduleAtFixedRate

public commonj.timers.Timer scheduleAtFixedRate(commonj.timers.TimerListener listener,
                                                long delay,
                                                long period)
DOCUMENT_ME

Specified by:
scheduleAtFixedRate in interface commonj.timers.TimerManager
Parameters:
listener - DOCUMENT_ME
delay - DOCUMENT_ME
period - DOCUMENT_ME
Returns:
DOCUMENT_ME

stop

public void stop()
DOCUMENT_ME

Specified by:
stop in interface commonj.timers.TimerManager

suspend

public void suspend()
DOCUMENT_ME

Specified by:
suspend in interface commonj.timers.TimerManager

waitForStop

public boolean waitForStop(long timeout_ms)
                    throws java.lang.InterruptedException,
                           java.lang.IllegalArgumentException
DOCUMENT_ME

Specified by:
waitForStop in interface commonj.timers.TimerManager
Parameters:
timeout_ms - DOCUMENT_ME
Returns:
DOCUMENT_ME
Throws:
java.lang.InterruptedException - DOCUMENT_ME
java.lang.IllegalArgumentException - DOCUMENT_ME

waitForSuspend

public boolean waitForSuspend(long timeout_ms)
                       throws java.lang.InterruptedException,
                              java.lang.IllegalStateException,
                              java.lang.IllegalArgumentException
DOCUMENT_ME

Specified by:
waitForSuspend in interface commonj.timers.TimerManager
Parameters:
timeout_ms - DOCUMENT_ME
Returns:
DOCUMENT_ME
Throws:
java.lang.InterruptedException - DOCUMENT_ME
java.lang.IllegalStateException - DOCUMENT_ME
java.lang.IllegalArgumentException - DOCUMENT_ME

removeTask

protected void removeTask(java.lang.Object task)
DOCUMENT_ME

Parameters:
task - DOCUMENT_ME


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.