public class DefaultMessageExceptionHandler extends Object implements MessageExceptionHandler
MessageExceptionHandler which handles exceptions thrown from message processing.| Constructor and Description |
|---|
DefaultMessageExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public DefaultMessageExceptionHandler()
public void handleException(Throwable throwable, PersistedMessageBO message, Object service) throws Exception
handleException in interface MessageExceptionHandlerExceptionpublic void handleExceptionLastDitchEffort(Throwable throwable, PersistedMessageBO message, Object service) throws Exception
handleExceptionLastDitchEffort in interface MessageExceptionHandlerExceptionpublic boolean isInException(PersistedMessageBO message)
MessageExceptionHandlerisInException in interface MessageExceptionHandlermessage - The PersistedMessageBO instance to be tested.protected void requeue(Throwable throwable, PersistedMessageBO message) throws Exception
Exceptionprotected void placeInException(Throwable throwable, PersistedMessageBO message) throws Exception
Exceptionprotected void scheduleExecution(Throwable throwable, PersistedMessageBO message) throws Exception
Exceptionpublic Integer getMaxRetryAttempts()
public Integer getGlobalMaxRetryAttempts()
public Long getTimeIncrement()
public Boolean getImmediateExceptionRouting()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.