com.quartzdesk.api.agent.log
Class WorkerThreadRunnable

java.lang.Object
  extended by com.quartzdesk.api.agent.log.WorkerThreadRunnable
All Implemented Interfaces:
Runnable

public class WorkerThreadRunnable
extends Object
implements Runnable

An implementation of the Runnable interface that can be used by job implementation classes to wrap a Runnable instance with the business logic to be executed by a worker thread spawned from the specified job execution thread. This wrapped allows QuartzDesk to intercept log messages produced by executed worker threads.

Version:
$Id:$
Author:
Jan Moravec

Constructor Summary
WorkerThreadRunnable(Thread jobThread, Runnable workerRunnable)
          Creates a new WorkerThreadRunnable instance for the specified job execution thread.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkerThreadRunnable

public WorkerThreadRunnable(Thread jobThread,
                            Runnable workerRunnable)
Creates a new WorkerThreadRunnable instance for the specified job execution thread.

Parameters:
jobThread - a job execution thread.
workerRunnable - the wrapped Runnable instance with the worker thread's business logic.
Method Detail

run

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


Copyright © 2013–2017 QuartzDesk.com. All rights reserved.