Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.ide.task
Class CancellableTask

java.lang.Object
  extended by oracle.ide.task.Task
      extended by oracle.ide.task.CancellableTask

public abstract class CancellableTask
extends Task

A cancellable task extends a Task with the additional method for requesting cancellation.


Field Summary
 
Fields inherited from class oracle.ide.task.Task
state, taskID
 
Constructor Summary
CancellableTask(java.lang.String shortName, int maxProgress)
          Constructor
 
Method Summary
 void requestCancellation()
          Request this task to Cancel itself.
 
Methods inherited from class oracle.ide.task.Task
addTaskListener, getID, getListenerList, getNewTaskEvent, getResult, getShortName, getState, getTimeLeftSeconds, getTotalCount, performTask, removeTaskListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancellableTask

public CancellableTask(java.lang.String shortName,
                       int maxProgress)
                throws TaskException
Constructor

Parameters:
shortName - name usually displayed in UIs
maxProgress - int the Maximum progress count for this task
Throws:
TaskException - if any parameters are not valid
Method Detail

requestCancellation

public void requestCancellation()
Request this task to Cancel itself. This changes the internal state of the task to CANCEL_REQUESTED but does not necessarily terminate the task. It is upto the implementor to check this state variable and terminate the task.


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

Copyright © 1997, 2011, Oracle. All rights reserved.