uPortal 2.4.1
API Documentation

org.jasig.portal.utils
Class ThreadPoolReceipt

java.lang.Object
  extended byorg.jasig.portal.utils.ThreadPoolReceipt

public class ThreadPoolReceipt
extends java.lang.Object

A receipt that provides some information/control about a job that's being processed on the ThreadPool

Author:
Peter Kharchenko pkharchenko@interactivebusiness.com

Constructor Summary
ThreadPoolReceipt(ThreadPoolWorker w)
           
 
Method Summary
 java.lang.Throwable getThrownException()
           
 boolean isJobdone()
           
 boolean isJobsuccessful()
           
 void killJob()
          Signals to the thread that it should abandon all hopes and kill the job as soon as possible.
 void releaseWorker()
           
 java.lang.String toString()
           
 void updateStatus(ThreadPoolWorker currentWorker, boolean isdone, boolean issuccessful, java.lang.Throwable ex)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThreadPoolReceipt

public ThreadPoolReceipt(ThreadPoolWorker w)
Method Detail

toString

public java.lang.String toString()

updateStatus

public void updateStatus(ThreadPoolWorker currentWorker,
                         boolean isdone,
                         boolean issuccessful,
                         java.lang.Throwable ex)

killJob

public void killJob()
Signals to the thread that it should abandon all hopes and kill the job as soon as possible.


releaseWorker

public void releaseWorker()

getThrownException

public java.lang.Throwable getThrownException()

isJobsuccessful

public boolean isJobsuccessful()

isJobdone

public boolean isJobdone()

uPortal 2.4.1
API Documentation