toolbox.services.util.logging
Class LoggingServiceAsyncImpl.AsyncLoggingWorker

Package class diagram package LoggingServiceAsyncImpl.AsyncLoggingWorker
java.lang.Object
  extended by toolbox.services.util.logging.LoggingServiceAsyncImpl.AsyncLoggingWorker
All Implemented Interfaces:
Worker
Enclosing class:
LoggingServiceAsyncImpl

 class LoggingServiceAsyncImpl.AsyncLoggingWorker
extends java.lang.Object
implements Worker

Worker class to handle asynchronous logging events.


Constructor Summary
LoggingServiceAsyncImpl.AsyncLoggingWorker(java.util.List svcList)
          Construct a new worker with the given list of LoggingService instances.
 
Method Summary
 void destroy()
          Destroy this worker
 void doWork(java.lang.Object event, java.lang.String lsnr)
          Receive async LogMessages and iterate over the list of LoggingService instances.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingServiceAsyncImpl.AsyncLoggingWorker

public LoggingServiceAsyncImpl.AsyncLoggingWorker(java.util.List svcList)
Construct a new worker with the given list of LoggingService instances.

Parameters:
svcList - List of LoggingServices instances.
Method Detail

doWork

public void doWork(java.lang.Object event,
                   java.lang.String lsnr)
Receive async LogMessages and iterate over the list of LoggingService instances.

Specified by:
doWork in interface Worker
Parameters:
event - LogMessage that must be logged.
lsnr - Name of the listener that invoked this worker.

destroy

public void destroy()
Destroy this worker

Specified by:
destroy in interface Worker