Class ConstantFuture<V>

java.lang.Object
org.apache.ofbiz.base.concurrent.ConstantFuture<V>
All Implemented Interfaces:
Future<V>

public class ConstantFuture<V> extends Object implements Future<V>
  • Constructor Details

    • ConstantFuture

      public ConstantFuture(V value)
  • Method Details

    • cancel

      public boolean cancel(boolean mayInterruptIfRunning)
      Specified by:
      cancel in interface Future<V>
    • get

      public V get()
      Specified by:
      get in interface Future<V>
    • get

      public V get(long timeout, TimeUnit unit)
      Specified by:
      get in interface Future<V>
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Future<V>
    • isDone

      public boolean isDone()
      Specified by:
      isDone in interface Future<V>