org.openide.util
Interface Cancellable

All Known Implementing Classes:
RequestProcessor.Task

public interface Cancellable

Service provider interface (SPI) for adding cancel support to various jobs. Note that cancel() method will be typically called concurrently to other methods of job or operation in question, so proper synchronization is needed.

Since:
3.36
Author:
Dafe Simonek

Method Summary
 boolean cancel()
          Cancel processing of the job.
 

Method Detail

cancel

boolean cancel()
Cancel processing of the job. Called not more then once for specific job.

Returns:
true if the job was succesfully cancelled, false if job can't be cancelled for some reason