src/main/java/org/jboss/util/threadpool/BasicTaskWrapper.java
protected boolean taskCompleted(Throwable throwable)
   {
      try
      {
         task.completed(getElapsedTime(), throwable);
         return true;
      }
      catch (Throwable t)
      {
         log.warn("Unexpected error during 'completed' for task: " + taskString, t);
         if (throwable != null)
            log.warn("Original error during 'run' for task: " + taskString, throwable);
         return false;
      }
   }
protected boolean taskCompleted(Throwable throwable)
   {
      try
      {
         task.completed(getElapsedTime(), throwable);
         return true;
      }
      catch (Throwable t)
      {
         log.warn("Unexpected error during 'completed' for task: " + taskString, t);
         if (throwable != null)
            log.warn("Original error during 'run' for task: " + taskString, throwable);
         return false;
      }
   }
protected boolean taskCompleted ( Throwable throwable ) { try { task . completed ( getElapsedTime ( ) , throwable ) ; return true ; } catch ( Throwable t ) { log . warn ( "Unexpected error during 'completed' for task: " + taskString , t ) ; if ( throwable != null ) log . warn ( "Original error during 'run' for task: " + taskString , throwable ) ; return false ; } }
Notify the task it has completed

@param throwable any throwable associated with the completion
@return true when the notification succeeds, false otherwise
Notify the task it has completed