public class NullTimerService extends AbstractContexed implements TimerService
TimerService.
USed in testsconn| Constructor and Description |
|---|
NullTimerService(AppContext conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
AppContext is being closed. |
java.lang.Class<? super TimerService> |
getType()
Returns the type of service the class should be registered under.
|
void |
startTimer(java.lang.String name)
Start a named timer
|
void |
stopTimer(java.lang.String name)
Stop a named timer
|
void |
timerStats()
Generate timer statistics to the log of the timer service.
|
void |
timerStats(java.lang.Class clazz)
Generate timer statistics to the log of the specified class.
|
void |
timerStats(java.lang.StringBuilder sb)
write stats to a
StringBuilder |
getContext, getLogger, resetLoggerpublic NullTimerService(AppContext conn)
conn - public java.lang.Class<? super TimerService> getType()
AppContextServicegetType in interface AppContextService<TimerService>public void cleanup()
AppContextCleanupAppContext is being closed.
Only use this for cleanup that can't be handled by
normal garbage collection or for state which is never returned by reference.cleanup in interface AppContextCleanuppublic void timerStats()
TimerServicetimerStats in interface TimerServicepublic void timerStats(java.lang.Class clazz)
TimerServicetimerStats in interface TimerServiceclazz - Class for loggingpublic void timerStats(java.lang.StringBuilder sb)
TimerServiceStringBuildertimerStats in interface TimerServicepublic void startTimer(java.lang.String name)
TimerServicestartTimer in interface TimerServicepublic void stopTimer(java.lang.String name)
TimerServicestopTimer in interface TimerService