Class GrouperCallable<T>
java.lang.Object
edu.internet2.middleware.grouper.util.GrouperCallable<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Callable<T>
-
Constructor Summary
ConstructorsConstructorDescriptionGrouperCallable(String theLogLabel) construct with log label, use the static session if it existsGrouperCallable(String theLogLabel, GrouperSession theGrouperSession) -
Method Summary
Modifier and TypeMethodDescriptionfinal Tcall()abstract TComputes a resultfinal TComputes a resultdescribes the callablebooleanvoidsetWillRetry(boolean willRetry) static voidthrowRuntimeException(Throwable throwable) convert exceptionstatic voidtryCallablesWithProblems(Collection<GrouperCallable> callablesWithProblems) note, call this in your grouper session, this runs in current thread
-
Constructor Details
-
GrouperCallable
- Parameters:
theGrouperSession-theLogLabel-
-
GrouperCallable
construct with log label, use the static session if it exists- Parameters:
theLogLabel-
-
-
Method Details
-
getLogLabel
describes the callable- Returns:
- the logLabel
-
tryCallablesWithProblems
note, call this in your grouper session, this runs in current thread- Parameters:
callablesWithProblems-
-
throwRuntimeException
convert exception- Parameters:
throwable-
-
isWillRetry
public boolean isWillRetry()- Returns:
- the willRetry
-
setWillRetry
public void setWillRetry(boolean willRetry) - Parameters:
willRetry- the willRetry to set
-
call
-
callLogicWithSessionIfExists
Computes a result- Returns:
- computed result
-
callLogic
Computes a result- Returns:
- computed result
-