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 MessageExceptionHandler
Exception
public void handleExceptionLastDitchEffort(Throwable throwable, PersistedMessageBO message, Object service) throws Exception
handleExceptionLastDitchEffort
in interface MessageExceptionHandler
Exception
public boolean isInException(PersistedMessageBO message)
MessageExceptionHandler
isInException
in interface MessageExceptionHandler
message
- The PersistedMessageBO instance to be tested.protected void requeue(Throwable throwable, PersistedMessageBO message) throws Exception
Exception
protected void placeInException(Throwable throwable, PersistedMessageBO message) throws Exception
Exception
protected void scheduleExecution(Throwable throwable, PersistedMessageBO message) throws Exception
Exception
public Integer getMaxRetryAttempts()
public Integer getGlobalMaxRetryAttempts()
public Long getTimeIncrement()
public Boolean getImmediateExceptionRouting()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.