src/main/java/org/jboss/util/threadpool/BasicTaskWrapper.java
protected boolean taskRejected(RuntimeException e)
   {
      try
      {
         task.rejected(getElapsedTime(), e);
         return true;
      }
      catch (Throwable t)
      {
         log.warn("Unexpected error during 'rejected' for task: " + taskString, t);
         if (e != null)
            log.warn("Original reason for rejection of task: " + taskString, e);
         return false;
      }
   }
protected boolean taskRejected(RuntimeException e)
   {
      try
      {
         task.rejected(getElapsedTime(), e);
         return true;
      }
      catch (Throwable t)
      {
         log.warn("Unexpected error during 'rejected' for task: " + taskString, t);
         if (e != null)
            log.warn("Original reason for rejection of task: " + taskString, e);
         return false;
      }
   }
protected boolean taskRejected ( RuntimeException e ) { try { task . rejected ( getElapsedTime ( ) , e ) ; return true ; } catch ( Throwable t ) { log . warn ( "Unexpected error during 'rejected' for task: " + taskString , t ) ; if ( e != null ) log . warn ( "Original reason for rejection of task: " + taskString , e ) ; return false ; } }
Notify the task it has been rejected

@param e any error associated with the rejection
@return true when the notification succeeds, false otherwise
Notify the task it has been rejected