com.quartzdesk.api.agent.log
Class WorkerThreadCallable<T>

java.lang.Object
  extended by com.quartzdesk.api.agent.log.WorkerThreadCallable<T>
All Implemented Interfaces:
Callable<T>

public class WorkerThreadCallable<T>
extends Object
implements Callable<T>

An implementation of the Callable interface that can be used by job implementation classes to wrap a Callable 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
WorkerThreadCallable(Thread jobThread, Callable<T> workerCallable)
          Creates a new WorkerThreadCallable instance for the specified job execution thread.
 
Method Summary
 T call()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkerThreadCallable

public WorkerThreadCallable(Thread jobThread,
                            Callable<T> workerCallable)
Creates a new WorkerThreadCallable instance for the specified job execution thread.

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

call

public T call()
       throws Exception
Specified by:
call in interface Callable<T>
Throws:
Exception


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