org.kuali.rice.ksb.messaging.exceptionhandling
Class DefaultMessageExceptionHandler

java.lang.Object
  extended by org.kuali.rice.ksb.messaging.exceptionhandling.DefaultMessageExceptionHandler
All Implemented Interfaces:
MessageExceptionHandler
Direct Known Subclasses:
DocumentMessageExceptionHandler

public class DefaultMessageExceptionHandler
extends Object
implements MessageExceptionHandler

Default implementation of the MessageExceptionHandler which handles exceptions thrown from message processing.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
DefaultMessageExceptionHandler()
           
 
Method Summary
 Integer getGlobalMaxRetryAttempts()
           
 Boolean getImmediateExceptionRouting()
           
 Integer getMaxRetryAttempts()
           
 Long getTimeIncrement()
           
 void handleException(Throwable throwable, PersistedMessageBO message, Object service)
           
 void handleExceptionLastDitchEffort(Throwable throwable, PersistedMessageBO message, Object service)
           
 boolean isInException(PersistedMessageBO message)
          Determines whether the message would go into Exception if submitted.
protected  void placeInException(Throwable throwable, PersistedMessageBO message)
           
protected  void requeue(Throwable throwable, PersistedMessageBO message)
           
protected  void scheduleExecution(Throwable throwable, PersistedMessageBO message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMessageExceptionHandler

public DefaultMessageExceptionHandler()
Method Detail

handleException

public void handleException(Throwable throwable,
                            PersistedMessageBO message,
                            Object service)
                     throws Exception
Specified by:
handleException in interface MessageExceptionHandler
Throws:
Exception

handleExceptionLastDitchEffort

public void handleExceptionLastDitchEffort(Throwable throwable,
                                           PersistedMessageBO message,
                                           Object service)
                                    throws Exception
Specified by:
handleExceptionLastDitchEffort in interface MessageExceptionHandler
Throws:
Exception

isInException

public boolean isInException(PersistedMessageBO message)
Description copied from interface: MessageExceptionHandler
Determines whether the message would go into Exception if submitted.

Specified by:
isInException in interface MessageExceptionHandler
Parameters:
message - The PersistedMessageBO instance to be tested.
Returns:
Returns true if the message would go into exception, otherwise returns false.

requeue

protected void requeue(Throwable throwable,
                       PersistedMessageBO message)
                throws Exception
Throws:
Exception

placeInException

protected void placeInException(Throwable throwable,
                                PersistedMessageBO message)
                         throws Exception
Throws:
Exception

scheduleExecution

protected void scheduleExecution(Throwable throwable,
                                 PersistedMessageBO message)
                          throws Exception
Throws:
Exception

getMaxRetryAttempts

public Integer getMaxRetryAttempts()

getGlobalMaxRetryAttempts

public Integer getGlobalMaxRetryAttempts()

getTimeIncrement

public Long getTimeIncrement()

getImmediateExceptionRouting

public Boolean getImmediateExceptionRouting()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.