com.stc.connector.comadapter.taskprocessor
Class SynchronizedTask
java.lang.Object
com.stc.connector.comadapter.taskprocessor.SynchronizedTask
- All Implemented Interfaces:
- Task
public class SynchronizedTask
- extends java.lang.Object
- implements Task
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SynchronizedTask
public SynchronizedTask(Task initTask)
invoke
public void invoke(Processor processor)
throws ProcessorException,
java.lang.InterruptedException
- Throws:
ProcessorException
java.lang.InterruptedException
execute
public void execute()
throws TaskException
- Specified by:
execute in interface Task
- Throws:
TaskException
setAborted
public void setAborted()
- Specified by:
setAborted in interface Task
isAborted
public boolean isAborted()
- Specified by:
isAborted in interface Task
setFailed
public void setFailed()
- Specified by:
setFailed in interface Task
isFailed
public boolean isFailed()
- Specified by:
isFailed in interface Task
isDone
public boolean isDone()
- Specified by:
isDone in interface Task
getException
public java.lang.Exception getException()
- Specified by:
getException in interface Task
Copyright © 1994-2008 Sun Microsystems, Inc. All rights reserved.