public final class ConcurrentExecutables extends Object implements Executable, Thread.UncaughtExceptionHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
ConcurrentExecutables.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ConcurrentExecutables.Builder |
builder(Executable... executables) |
static ConcurrentExecutables.Builder |
builder(List<Executable> executables) |
static ConcurrentExecutables |
create(Executable... executables) |
static ConcurrentExecutables |
create(List<Executable> executables) |
void |
execute() |
static void |
execute(Executable... executables) |
static void |
execute(List<Executable> executables) |
static void |
executeConcurrently(List<Executable> executables,
int maxThreads) |
com.google.common.collect.ImmutableList<Executable> |
getExecutables() |
protected List<Thread> |
getThreads(List<Executable> executables,
com.google.common.base.Optional<Integer> maxThreads) |
com.google.common.base.Optional<IllegalStateException> |
getUncaughtException() |
boolean |
isSkip() |
boolean |
isTimed() |
void |
uncaughtException(Thread thread,
Throwable uncaughtException) |
public static void execute(Executable... executables)
public static void execute(List<Executable> executables)
public static void executeConcurrently(List<Executable> executables, int maxThreads)
public static ConcurrentExecutables create(Executable... executables)
public static ConcurrentExecutables create(List<Executable> executables)
public static ConcurrentExecutables.Builder builder(Executable... executables)
public static ConcurrentExecutables.Builder builder(List<Executable> executables)
public void execute()
execute in interface Executableprotected List<Thread> getThreads(List<Executable> executables, com.google.common.base.Optional<Integer> maxThreads)
public void uncaughtException(Thread thread, Throwable uncaughtException)
uncaughtException in interface Thread.UncaughtExceptionHandlerpublic com.google.common.collect.ImmutableList<Executable> getExecutables()
public boolean isSkip()
public boolean isTimed()
public com.google.common.base.Optional<IllegalStateException> getUncaughtException()
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.