Constructor and Description |
---|
GrouperCallable(String theLogLabel)
construct with log label, use the static session if it exists
|
GrouperCallable(String theLogLabel,
GrouperSession theGrouperSession) |
Modifier and Type | Method and Description |
---|---|
T |
call() |
abstract T |
callLogic()
Computes a result
|
T |
callLogicWithSessionIfExists()
Computes a result
|
String |
getLogLabel()
describes the callable
|
boolean |
isWillRetry() |
void |
setWillRetry(boolean willRetry) |
static void |
throwRuntimeException(Throwable throwable)
convert exception
|
static void |
tryCallablesWithProblems(Collection<GrouperCallable> callablesWithProblems)
note, call this in your grouper session, this runs in current thread
|
public GrouperCallable(String theLogLabel, GrouperSession theGrouperSession)
theGrouperSession
- theLogLabel
- public GrouperCallable(String theLogLabel)
theLogLabel
- public String getLogLabel()
public static void tryCallablesWithProblems(Collection<GrouperCallable> callablesWithProblems)
callablesWithProblems
- public static void throwRuntimeException(Throwable throwable)
throwable
- public boolean isWillRetry()
public void setWillRetry(boolean willRetry)
willRetry
- the willRetry to setpublic final T call() throws Exception
call
in interface Callable<T>
Exception
Callable.call()
public final T callLogicWithSessionIfExists()
public abstract T callLogic()
Copyright © 2016 Internet2. All rights reserved.