org.netbeans.modules.parsing.api/1 1.55.0 6

org.netbeans.modules.parsing.spi
Class SchedulerTask

java.lang.Object
  extended by org.netbeans.modules.parsing.api.Task
      extended by org.netbeans.modules.parsing.spi.SchedulerTask
Direct Known Subclasses:
EmbeddingProvider, ParserBasedEmbeddingProvider, ParserResultTask

public abstract class SchedulerTask
extends Task

Abstract ascendant of all types of SPI tasks (EmbeddingProvider, ParserBasedEmbeddingProvider and ParserResultTask). Do not extend this class directly!


Method Summary
abstract  void cancel()
          Called by infrastructure when the task was interrupted by the infrastructure.
abstract  int getPriority()
          A priority.
abstract  Class<? extends Scheduler> getSchedulerClass()
          Returns Scheduler class for this SchedulerTask.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPriority

public abstract int getPriority()
A priority. Less number wins.

Returns:
Priority of this listener.

getSchedulerClass

public abstract Class<? extends Scheduler> getSchedulerClass()
Returns Scheduler class for this SchedulerTask. See Scheduler documentation for a list of default schedulers, or your your own implementation.

Returns:
Scheduler for this SchedulerTask.

cancel

public abstract void cancel()
Called by infrastructure when the task was interrupted by the infrastructure. todo: Shouldn't be replaced by Result.isCanceled?


org.netbeans.modules.parsing.api/1 1.55.0 6

Built on May 24 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.