1 25 26 package javax.ejb; 27 28 import java.io.Serializable ; 29 import java.util.Collection ; 30 import java.util.Date ; 31 32 41 public interface TimerService { 42 43 55 Timer createTimer(final long duration, final Serializable info) throws IllegalArgumentException , IllegalStateException , 56 EJBException ; 57 58 80 Timer createTimer(final long initialDuration, final long intervalDuration, final Serializable info) 81 throws IllegalArgumentException , IllegalStateException , EJBException ; 82 83 96 Timer createTimer(Date expiration, Serializable info) throws IllegalArgumentException , IllegalStateException , EJBException ; 97 98 121 Timer createTimer(Date initialExpiration, long intervalDuration, Serializable info) throws IllegalArgumentException , 122 IllegalStateException , EJBException ; 123 124 132 Collection getTimers() throws IllegalStateException , EJBException ; 133 134 } 135 | Popular Tags |