Constructor and Description |
---|
GrouperFuture(Future theFuture,
Callable theCallable) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
Callable |
getCallable() |
GrouperCallable |
getGrouperCallable()
if grouper callable, this is a convenience method for getting that type
|
boolean |
isCancelled() |
boolean |
isDone() |
static boolean |
waitForJob(GrouperFuture<?> future,
int secondsToWait) |
static void |
waitForJob(List<GrouperFuture> futures,
int threadPoolSize,
List<GrouperCallable> callablesWithProblems)
relies on the callable being a GrouperCallable.
|
public Callable getCallable()
public GrouperCallable getGrouperCallable()
public boolean cancel(boolean mayInterruptIfRunning)
cancel
in interface Future<T>
Future.cancel(boolean)
public boolean isCancelled()
isCancelled
in interface Future<T>
Future.isCancelled()
public boolean isDone()
isDone
in interface Future<T>
Future.isDone()
public T get()
get
in interface Future<T>
Future.get()
public T get(long timeout, TimeUnit unit)
get
in interface Future<T>
Future.get(long, java.util.concurrent.TimeUnit)
public static boolean waitForJob(GrouperFuture<?> future, int secondsToWait)
future
- secondsToWait
- -1 to wait foreverpublic static void waitForJob(List<GrouperFuture> futures, int threadPoolSize, List<GrouperCallable> callablesWithProblems)
futures
- threadPoolSize
- callablesWithProblems
- pass in a list to capture which jobs had problems. if null, then jsut throw
exceptions as they happenCopyright © 2016 Internet2. All rights reserved.