org.apache.avalon.cornerstone.threads.tutorial
Class Counter

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.apache.avalon.cornerstone.threads.tutorial.Counter
All Implemented Interfaces:
LogEnabled, Runnable

public class Counter
extends Thread
implements LogEnabled

A demonstration runnable object that simply logs a countdown sequence.

Author:
Stephen McConnell
Component:
name="counter"

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Counter()
           
 
Method Summary
 void enableLogging(Logger logger)
           
protected  Logger getLogger()
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Counter

public Counter()
Method Detail

enableLogging

public void enableLogging(Logger logger)
Specified by:
enableLogging in interface LogEnabled

getLogger

protected Logger getLogger()

run

public void run()
Specified by:
run in interface Runnable


Copyright © Apache Software Foundation. All Rights Reserved.