org.openide.util
Class RequestProcessor.Task

java.lang.Object
  |
  +--org.openide.util.Task
        |
        +--org.openide.util.RequestProcessor.Task
All Implemented Interfaces:
Runnable
Enclosing class:
RequestProcessor

public final class RequestProcessor.Task
extends Task

The task describing the request task send to the processor.


Fields inherited from class org.openide.util.Task
EMPTY
 
Method Summary
 boolean cancel()
          Removes the task from the queue.
 int getDelay()
          Getter for amount of millis till this task is started.
 int getPriority()
          Current priority of the task.
 void schedule(int delay)
          Changes the delay to different level, if the task has not been run yet, it is replaned to the new time.
 void setPriority(int priority)
          Changes priority to new one.
 String toString()
           
 
Methods inherited from class org.openide.util.Task
addTaskListener, isFinished, notifyFinished, removeTaskListener, run, waitFinished
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDelay

public int getDelay()
Getter for amount of millis till this task is started.
Returns:
amount of millis

schedule

public void schedule(int delay)
Changes the delay to different level, if the task has not been run yet, it is replaned to the new time. If it has been finished, it is replaned to be started again.
Parameters:
delay - time in millis to wait

cancel

public boolean cancel()
Removes the task from the queue.
Returns:
true if the task has been removed from the queue, false it the task has already been processed

getPriority

public int getPriority()
Current priority of the task.

setPriority

public void setPriority(int priority)
Changes priority to new one. If the task has been already run, do not plan it again.

toString

public String toString()
Overrides:
toString in class Task
Returns:
string representation


Built on February 22 2001.  |  Portions Copyright 1997-2000 Sun Microsystems, Inc. All rights reserved.