Class DefaultMessageExceptionHandler
java.lang.Object
org.kuali.rice.ksb.messaging.exceptionhandling.DefaultMessageExceptionHandler
- All Implemented Interfaces:
MessageExceptionHandler
Default implementation of the
MessageExceptionHandler which handles exceptions thrown from message processing.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleException(Throwable throwable, PersistedMessageBO message) voidhandleExceptionLastDitchEffort(Throwable throwable, PersistedMessageBO message) booleanisInException(PersistedMessageBO message) Determines whether the message would go into Exception if submitted.protected voidplaceInException(Throwable throwable, PersistedMessageBO message) protected voidrequeue(Throwable throwable, PersistedMessageBO message) protected voidscheduleExecution(Throwable throwable, PersistedMessageBO message)
-
Constructor Details
-
DefaultMessageExceptionHandler
public DefaultMessageExceptionHandler()
-
-
Method Details
-
handleException
- Specified by:
handleExceptionin interfaceMessageExceptionHandler- Throws:
Exception
-
handleExceptionLastDitchEffort
public void handleExceptionLastDitchEffort(Throwable throwable, PersistedMessageBO message) throws Exception - Specified by:
handleExceptionLastDitchEffortin interfaceMessageExceptionHandler- Throws:
Exception
-
isInException
Description copied from interface:MessageExceptionHandlerDetermines whether the message would go into Exception if submitted.- Specified by:
isInExceptionin interfaceMessageExceptionHandler- Parameters:
message- The PersistedMessageBO instance to be tested.- Returns:
- Returns true if the message would go into exception, otherwise returns false.
-
requeue
- Throws:
Exception
-
placeInException
- Throws:
Exception
-
scheduleExecution
- Throws:
Exception
-
getMaxRetryAttempts
-
getGlobalMaxRetryAttempts
-
getTimeIncrement
-
getImmediateExceptionRouting
-