org.sonatype.sisu.goodies.thread
Class PeriodicThreadSupport
java.lang.Object
java.lang.Thread
org.sonatype.sisu.goodies.thread.ThreadSupport
org.sonatype.sisu.goodies.thread.PeriodicThreadSupport
- All Implemented Interfaces:
- Runnable, LifecycleAware
public abstract class PeriodicThreadSupport
- extends ThreadSupport
- implements LifecycleAware
Support for periodic Thread
implementations.
- Since:
- 1.0
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield |
PeriodicThreadSupport
protected PeriodicThreadSupport()
PeriodicThreadSupport
protected PeriodicThreadSupport(String name)
PeriodicThreadSupport
protected PeriodicThreadSupport(ThreadGroup group,
String name)
doRun
protected final void doRun()
throws Exception
- Specified by:
doRun
in class ThreadSupport
- Throws:
Exception
doTask
protected abstract void doTask()
throws Exception
- Throws:
Exception
doContinue
protected void doContinue()
throws Exception
- Throws:
Exception
pause
protected void pause(Time time)
throws InterruptedException
- Throws:
InterruptedException
getLifecycle
public Lifecycle getLifecycle()
- Specified by:
getLifecycle
in interface LifecycleAware
Copyright © 2008-2012 Sonatype, Inc.. All Rights Reserved.