org.kuali.rice.ksb.messaging.exceptionhandling
Class DefaultMessageExceptionHandler
java.lang.Object
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMessageExceptionHandler
public DefaultMessageExceptionHandler()
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–2014 The Kuali Foundation. All rights reserved.