Tabnine Logo
LongTaskExecutor.cancel
Code IndexAdd Tabnine to your IDE (free)

How to use
cancel
method
in
org.gephi.utils.longtask.api.LongTaskExecutor

Best Java code snippets using org.gephi.utils.longtask.api.LongTaskExecutor.cancel (Showing top 3 results out of 315)

origin: org.gephi/utils-longtask

  @Override
  public boolean cancel() {
    LongTaskExecutor.this.cancel();
    return true;
  }
});
origin: org.gephi/layout-api

@Override
public void stopLayout() {
  model.getExecutor().cancel();
}
origin: org.gephi/layout-api

@Override
public void close(Workspace workspace) {
  LayoutModelImpl layoutModel = workspace.getLookup().lookup(LayoutModelImpl.class);
  if (layoutModel != null) {
    layoutModel.getExecutor().cancel();
  }
}
org.gephi.utils.longtask.apiLongTaskExecutorcancel

Javadoc

Cancel the current task. If the task fails to cancel itself and if an interruptDelay has been specified, the task will be interrupted after interruptDelay. Using Thread.interrupt() may cause hazardous behaviors and should be avoided. Therefore any task should be cancelable.

Popular methods of LongTaskExecutor

  • execute
    Execute a long task with cancel and progress support. Task can benull. In this case runnable will be
  • <init>
    Creates a new long task executor.
  • setDefaultErrorHandler
    Set the default error handler. Use error handlers to get errors and exceptions thrown during tasks e
  • setLongTaskListener
    Set the listener to this executor. Only a unique listener can be set to this executor. The listener
  • isRunning
    Returns true if the executor is executing a task.

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • findViewById (Activity)
  • putExtra (Intent)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now