de.nava.informa.utils.cleaner
Class CleanerWorkerThread

java.lang.Object
  extended by java.lang.Thread
      extended by de.nava.informa.utils.toolkit.WorkerThread
          extended by de.nava.informa.utils.cleaner.CleanerWorkerThread
All Implemented Interfaces:
Runnable

public class CleanerWorkerThread
extends WorkerThread

Worker thread performing cleaning operations over channels.

Processing of channel consists of checking every item with registered matcher. If checker says that the item matches the rule then there will be event thrown to the observer.

Author:
Aleksey Gureev (spyromus@noizeramp.com)
See Also:
WorkerThread

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CleanerWorkerThread(CleanerObserverIF observer, CleanerMatcherIF matcher)
          Creates new worker thread object.
 
Method Summary
protected  void processRecord(ChannelRecord record)
          Processes record.
 
Methods inherited from class de.nava.informa.utils.toolkit.WorkerThread
getChannelInProcess, run, setQueue, terminate
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CleanerWorkerThread

public CleanerWorkerThread(CleanerObserverIF observer,
                           CleanerMatcherIF matcher)
Creates new worker thread object.

Parameters:
observer - observer of the cleaner.
matcher - matcher of the cleaner.
Method Detail

processRecord

protected final void processRecord(ChannelRecord record)
Processes record.

Specified by:
processRecord in class WorkerThread
Parameters:
record - record to process.


Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.