Class GrouperCallable<T>

java.lang.Object
edu.internet2.middleware.grouper.util.GrouperCallable<T>
Type Parameters:
T -
All Implemented Interfaces:
Callable<T>

public abstract class GrouperCallable<T> extends Object implements Callable<T>
  • Constructor Details

    • GrouperCallable

      public GrouperCallable(String theLogLabel, GrouperSession theGrouperSession)
      Parameters:
      theGrouperSession -
      theLogLabel -
    • GrouperCallable

      public GrouperCallable(String theLogLabel)
      construct with log label, use the static session if it exists
      Parameters:
      theLogLabel -
  • Method Details

    • getLogLabel

      public String getLogLabel()
      describes the callable
      Returns:
      the logLabel
    • tryCallablesWithProblems

      public static void tryCallablesWithProblems(Collection<GrouperCallable> callablesWithProblems)
      note, call this in your grouper session, this runs in current thread
      Parameters:
      callablesWithProblems -
    • throwRuntimeException

      public static void throwRuntimeException(Throwable throwable)
      convert exception
      Parameters:
      throwable -
    • isWillRetry

      public boolean isWillRetry()
      Returns:
      the willRetry
    • setWillRetry

      public void setWillRetry(boolean willRetry)
      Parameters:
      willRetry - the willRetry to set
    • call

      public final T call() throws Exception
      Specified by:
      call in interface Callable<T>
      Throws:
      Exception
      See Also:
    • callLogicWithSessionIfExists

      public final T callLogicWithSessionIfExists()
      Computes a result
      Returns:
      computed result
    • callLogic

      public abstract T callLogic()
      Computes a result
      Returns:
      computed result