| org.jboss.test.timer.interfaces.TimerSLSB
TimerSLSB | public interface TimerSLSB extends javax.ejb.EJBObject(Code) | | Remote interface for test/timer/TimerSLSB.
author: Thomas Diesler author: Scott.Stark@jboss.org version: $Revision: 57211 $ |
INFO_EXEC_FAIL_COUNT | String INFO_EXEC_FAIL_COUNT(Code) | | Used in the unit tests. This is a key in a Map that can be used as the timer's
info (timer.getInfo()). If this key maps to an Integer value in the Map,it will cause the
ejbTimeout method to rollback the transaction that many times.
|
INFO_TASK_RUNTIME | String INFO_TASK_RUNTIME(Code) | | Used in the unit tests. This is a key in a Map that can be used as the timer's
info (timer.getInfo()). If this key maps to an Integer value in the Map,it will cause the
ejbTimeout method to sleep for number of milliseconds specified in the Integer.
This is used to simulate a long running task, and helps to test JBAS-1926.
|
getRetryTimeoutPeriod | public long getRetryTimeoutPeriod() throws java.rmi.RemoteException(Code) | | Returns the value from the RetryPolicyMBean. This is used by unit tests to help determine timing
for some of the tests, specifically, those that test the fix for JBAS-1926.
|
startSingleTimer | public byte[] startSingleTimer(long pPeriod) throws java.rmi.RemoteException(Code) | | Start a single timer (if not already set) with the start date plus the period
This method uses an implementation defined default value for the timer info.
Parameters: pPeriod - Time that will elapse between now and the timed event in milliseconds |
startSingleTimer | public byte[] startSingleTimer(long pPeriod, Serializable info) throws java.rmi.RemoteException(Code) | | Start a single timer (if not already set) with the start date plus the period and specified info.
Parameters: pPeriod - Time that will elapse between now and the timed event in milliseconds Parameters: info - an object to be used as the info for the timer. |
startTimer | public byte[] startTimer(long pPeriod) throws java.rmi.RemoteException(Code) | | Start a timer (if not already set) with the start date plus the period and an interval of the given period.
This method uses an implementation defined default value for the timer info.
Parameters: pPeriod - Time that will elapse between two events in milliseconds |
startTimer | public byte[] startTimer(long pPeriod, Serializable info) throws java.rmi.RemoteException(Code) | | Start a timer (if not already set) with the start date plus the period and an interval of the given
period and the specified timer info
Parameters: pPeriod - Time that will elapse between two events in milliseconds Parameters: info - an object to be used as the info for the timer. |
|
|