1 22 package org.jboss.ejb.txtimer; 23 24 26 import java.io.Serializable ; 27 import java.util.ArrayList ; 28 import java.util.Date ; 29 import java.util.List ; 30 31 import javax.management.ObjectName ; 32 33 import org.jboss.logging.Logger; 34 35 43 public class NoopPersistencePolicy implements NoopPersistencePolicyMBean 44 { 45 private static Logger log = Logger.getLogger(NoopPersistencePolicy.class); 47 48 57 public void insertTimer(String timerId, TimedObjectId timedObjectId, Date firstEvent, long periode, Serializable info) 58 { 59 log.debug("Noop on insertTimer"); 60 } 61 62 68 public void deleteTimer(String timerId, TimedObjectId timedObjectId) 69 { 70 log.debug("Noop on deleteTimer"); 71 } 72 73 76 public void clearTimers() 77 { 78 log.debug("Noop on clearTimers"); 79 } 80 81 84 public void restoreTimers() 85 { 86 log.debug("Noop on restoreTimers"); 87 } 88 89 95 public List listTimerHandles(ObjectName containerId, ClassLoader loader) 96 { 97 log.debug("Noop on listTimerHandles"); 98 return new ArrayList (); 99 } 100 101 104 public List listTimerHandles() 105 { 106 log.debug("Noop on listTimerHandles"); 107 return new ArrayList (); 108 } 109 110 117 public List listTimerHandles(TimedObjectId timedObjectId) 118 { 119 log.debug("Noop on listTimerHandles"); 120 return new ArrayList (); 121 } 122 123 } 124 | Popular Tags |