Class ComputeOnce<T>

java.lang.Object
org.aksw.jenax.graphql.impl.common.ComputeOnce<T>

public class ComputeOnce<T> extends Object
  • Field Details

    • taskName

      protected String taskName
    • computationTask

      protected Callable<com.google.common.util.concurrent.ListenableFuture<T>> computationTask
    • computation

      protected transient com.google.common.util.concurrent.ListenableFuture<T> computation
  • Constructor Details

    • ComputeOnce

      public ComputeOnce(String taskName, Callable<com.google.common.util.concurrent.ListenableFuture<T>> computationTask)
  • Method Details

    • of

      public static <T> ComputeOnce<T> of(String taskName, Callable<com.google.common.util.concurrent.ListenableFuture<T>> computationTask)
    • ofWithLogging

      public static <T> ComputeOnce<T> ofWithLogging(String taskName, Callable<com.google.common.util.concurrent.ListenableFuture<T>> delegateCreation)
    • get

      public com.google.common.util.concurrent.ListenableFuture<T> get()
    • getWithLogging

      public T getWithLogging()
    • getWithLogging

      public static <T> T getWithLogging(ComputeOnce<T> delegateCreation)