Class GrouperCallable<T>
java.lang.Object
edu.internet2.middleware.grouper.util.GrouperCallable<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Callable<T>
-
Constructor Summary
ConstructorDescriptionGrouperCallable
(String theLogLabel) construct with log label, use the static session if it existsGrouperCallable
(String theLogLabel, GrouperSession theGrouperSession) -
Method Summary
Modifier and TypeMethodDescriptionfinal T
call()
abstract T
Computes a resultfinal T
Computes a resultdescribes the callableboolean
void
setWillRetry
(boolean willRetry) static void
throwRuntimeException
(Throwable throwable) convert exceptionstatic void
tryCallablesWithProblems
(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
-