Class EDTRunnableFuture<V>

Type Parameters:
V - the result type returned by the method
All Implemented Interfaces:
Runnable, Future<V>, RunnableFuture<V>, SettableFuture<V>, SettableRunnableFuture<V>

public abstract class EDTRunnableFuture<V> extends SimpleRunnableFuture<V>
A {link RunnableFuture} for use on the Event Dispatch Thread.
Since:
3.2.0
Author:
Joel Uckelman
  • Constructor Details

    • EDTRunnableFuture

      public EDTRunnableFuture()
      Creates a {link RunnableFuture} which will be run on the Event Dispatch Thread.
    • EDTRunnableFuture

      public EDTRunnableFuture(V result)
      Creates a {link RunnableFuture} which will be run on the Event Dispatch Thread.
      Parameters:
      result - the result to return
  • Method Details

    • runOnEDT

      protected abstract void runOnEDT() throws Exception
      This method is run on the EDT.
      Throws:
      Exception - any exception
    • run

      public final void run()