Class ComputeOnce<T>
java.lang.Object
org.aksw.jenax.graphql.impl.common.ComputeOnce<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionComputeOnce(String taskName, Callable<com.google.common.util.concurrent.ListenableFuture<T>> computationTask) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<T>get()static <T> TgetWithLogging(ComputeOnce<T> delegateCreation) static <T> ComputeOnce<T>of(String taskName, Callable<com.google.common.util.concurrent.ListenableFuture<T>> computationTask) static <T> ComputeOnce<T>ofWithLogging(String taskName, Callable<com.google.common.util.concurrent.ListenableFuture<T>> delegateCreation)
-
Field Details
-
taskName
-
computationTask
-
computation
-
-
Constructor Details
-
ComputeOnce
-
-
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
-
getWithLogging
-
getWithLogging
-