org.jboss.test.timer.interfaces
Interface TimerEntity

All Superinterfaces:
EJBObject (src) , java.rmi.Remote

public interface TimerEntity
extends EJBObject (src)


Method Summary
 java.lang.Object getInfo()
           
 java.util.Date getNextTimeout()
           
 int getTimeoutCount()
           
 long getTimeRemaining()
           
 TimerHandle (src) getTimerHandle()
           
 void startSingleTimer(long pPeriod)
          Start a single timer (if not already set) with the start date plus the period
 void startTimer(long pPeriod)
          Start a timer (if not already set) with the start date plus the period and an interval of the given period
 void stopTimer()
           
 
Methods inherited from interface javax.ejb.EJBObject (src)
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

startSingleTimer

public void startSingleTimer(long pPeriod)
                      throws java.rmi.RemoteException
Start a single timer (if not already set) with the start date plus the period

Parameters:
pPeriod - Time that will elapse between now and the timed event in milliseconds
Throws:
java.rmi.RemoteException

startTimer

public void startTimer(long pPeriod)
                throws java.rmi.RemoteException
Start a timer (if not already set) with the start date plus the period and an interval of the given period

Parameters:
pPeriod - Time that will elapse between two events in milliseconds
Throws:
java.rmi.RemoteException

stopTimer

public void stopTimer()
               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getTimeoutCount

public int getTimeoutCount()
                    throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getNextTimeout

public java.util.Date getNextTimeout()
                              throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getTimeRemaining

public long getTimeRemaining()
                      throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getInfo

public java.lang.Object getInfo()
                         throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getTimerHandle

public TimerHandle (src)  getTimerHandle()
                           throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException