Task
Interface TaskExecutorIF<ReturnValueType>
- All Known Implementing Classes:
- TaskExecutorAdapter
public interface TaskExecutorIF<ReturnValueType>
TaskExecutorIF is a simple interface that encapsulates the method needed by a functor
which executes in the background - not on the EDT thread.
- Since:
- May 30, 2007, 1:35:53 PM
- Version:
- 1.0
- Author:
- Nazmul Idris
doInBackground
ReturnValueType doInBackground(java.util.concurrent.Future<ReturnValueType> swingWorker,
SwingUIHookAdapter hook)
throws java.lang.Exception
- This method is executed in the background thread. The actual execution is performed in a background
thread provided by
SwingWorker. The swingWorker object can be queried to find out
if it's been cancelled or not.
- Parameters:
swingWorker - useful to determine if the SwingWorker has been cancelled (interrupted or whatever)hook -
- Throws:
java.lang.Exception
getStartMessage
java.lang.String getStartMessage()
getInterruptedMessage
java.lang.String getInterruptedMessage()
getCancelledMessage
java.lang.String getCancelledMessage()
getSuccessMessage
java.lang.String getSuccessMessage()
getRetryMessage
java.lang.String getRetryMessage()
getNotOnlineMessage
java.lang.String getNotOnlineMessage()
Copyright © 2011. All Rights Reserved.