Interface PluginTask<V>

Type Parameters:
V - the type of the value returned by this task.
All Superinterfaces:
Cancellable, Future<V>, PluginAware

public interface PluginTask<V> extends Future<V>, Cancellable, PluginAware
A PluginTask is a future used by a PluginScheduler.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A helper object for building and scheduling a PluginTask.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Cancels the task bound to this Cancellable.
    boolean
    Returns whether this future is executed asynchronously.

    Methods inherited from interface java.util.concurrent.Future

    cancel, get, get, isCancelled, isDone

    Methods inherited from interface com.xpdustry.distributor.plugin.PluginAware

    getPlugin
  • Method Details

    • isAsync

      boolean isAsync()
      Returns whether this future is executed asynchronously.
    • cancel

      default void cancel()
      Description copied from interface: Cancellable
      Cancels the task bound to this Cancellable.
      Specified by:
      cancel in interface Cancellable