public class SuspendableUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SuspendableUtils.VoidSuspendableCallable |
| Constructor and Description |
|---|
SuspendableUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <V> SuspendableCallable<V> |
asSuspendable(java.util.concurrent.Callable<V> callable) |
static SuspendableRunnable |
asSuspendable(java.lang.Runnable runnable) |
static <V,E extends java.lang.Exception> |
asSuspendableCallable(CheckedSuspendableCallable<V,E> callable) |
static SuspendableCallable<java.lang.Void> |
runnableToCallable(SuspendableRunnable runnable) |
public static SuspendableCallable<java.lang.Void> runnableToCallable(SuspendableRunnable runnable)
public static SuspendableRunnable asSuspendable(java.lang.Runnable runnable)
public static <V> SuspendableCallable<V> asSuspendable(java.util.concurrent.Callable<V> callable)
public static <V,E extends java.lang.Exception> SuspendableCallable<V> asSuspendableCallable(CheckedSuspendableCallable<V,E> callable)