public class PhotonWorkerPool
extends com.helger.scope.singleton.AbstractGlobalSingleton
| Constructor and Description |
|---|
PhotonWorkerPool()
Deprecated.
|
PhotonWorkerPool(ExecutorService aES) |
PhotonWorkerPool(int nThreadPoolSize) |
| Modifier and Type | Method and Description |
|---|---|
static PhotonWorkerPool |
getInstance() |
protected void |
onDestroy(com.helger.scope.IScope aScopeInDestruction) |
CompletableFuture<Void> |
run(String sActionName,
Runnable aRunnable) |
CompletableFuture<Void> |
runThrowing(String sActionName,
com.helger.commons.callback.IThrowingRunnable<? extends Exception> aRunnable) |
<T> CompletableFuture<T> |
supply(String sActionName,
Supplier<T> aSupplier) |
<T> CompletableFuture<T> |
supplyThrowing(String sActionName,
com.helger.commons.functional.IThrowingSupplier<T,? extends Exception> aSupplier) |
getAllGlobalSingletons, getGlobalSingleton, getGlobalSingletonIfInstantiated, isGlobalSingletonInstantiatedgetAllSingletons, getSingleton, getSingletonIfInstantiated, getSingletonScopeKey, isDestroyed, isInDestruction, isInInstantiation, isInPreDestruction, isInstantiated, isSingletonInstantiated, isUsableObject, onAfterInstantiation, onBeforeDestroy, onBeforeScopeDestruction, onScopeDestruction, readAbstractSingletonFields, setDestroyed, setInDestruction, setInInstantiation, setInPreDestruction, setInstantiated, toString, writeAbstractSingletonFields@Deprecated @UsedViaReflection public PhotonWorkerPool()
public PhotonWorkerPool(@Nonnegative int nThreadPoolSize)
public PhotonWorkerPool(@Nonnull ExecutorService aES)
@Nonnull public static PhotonWorkerPool getInstance()
protected void onDestroy(@Nonnull com.helger.scope.IScope aScopeInDestruction) throws Exception
onDestroy in class com.helger.scope.singleton.AbstractSingletonException@Nonnull public CompletableFuture<Void> run(@Nonnull String sActionName, @Nonnull Runnable aRunnable)
@Nonnull public CompletableFuture<Void> runThrowing(@Nonnull String sActionName, @Nonnull com.helger.commons.callback.IThrowingRunnable<? extends Exception> aRunnable)
@Nonnull public <T> CompletableFuture<T> supply(@Nonnull String sActionName, @Nonnull Supplier<T> aSupplier)
Copyright © 2014–2023 Philip Helger. All rights reserved.