1 22 package org.jboss.ejb.txtimer; 23 24 26 import javax.ejb.TimerService ; 27 import javax.management.ObjectName ; 28 29 import org.jboss.ejb.Container; 30 import org.jboss.mx.util.ObjectNameFactory; 31 32 40 public interface EJBTimerService 41 { 42 45 static final ObjectName OBJECT_NAME = ObjectNameFactory.create("jboss.ejb:service=EJBTimerService"); 46 47 56 TimerService createTimerService(ObjectName containerId, Object pKey, Container container) throws IllegalStateException ; 57 58 66 TimerService createTimerService(ObjectName containerId, Object pKey, TimedObjectInvoker invoker) throws IllegalStateException ; 67 68 75 TimerService getTimerService(ObjectName containerId, Object pKey) throws IllegalStateException ; 76 77 87 void removeTimerService(ObjectName containerId, Object pKey) throws IllegalStateException ; 88 89 99 void removeTimerService(ObjectName containerId, boolean keepState) throws IllegalStateException ; 100 101 107 void restoreTimers(ObjectName containerId, ClassLoader loader) throws IllegalStateException ; 108 109 } 110 | Popular Tags |