Class HandlerTaskUtils


  • public class HandlerTaskUtils
    extends java.lang.Object
    Utils for tasks that use handlers.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T execute​(HandlerCall<T> handlerCall)
      Executes a call and translates HandlerException to TaskException if thrown.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HandlerTaskUtils

        public HandlerTaskUtils()
    • Method Detail

      • execute

        public static <T> T execute​(HandlerCall<T> handlerCall)
                             throws TaskException
        Executes a call and translates HandlerException to TaskException if thrown.
        Type Parameters:
        T - Handler output type
        Parameters:
        handlerCall - Handler call
        Returns:
        Output of the handler
        Throws:
        TaskException - Handle exception wrapped