|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.internet2.middleware.grouper.util.GrouperCallable<T>
T
- public abstract class GrouperCallable<T>
Constructor Summary | |
---|---|
GrouperCallable(String theLogLabel)
construct with log label, use the static session if it exists |
|
GrouperCallable(String theLogLabel,
GrouperSession theGrouperSession)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrouperCallable(String theLogLabel, GrouperSession theGrouperSession)
theGrouperSession
- theLogLabel
- public GrouperCallable(String theLogLabel)
theLogLabel
- Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |