org.springframework.integration.channel
Class MessagePublishingErrorHandler

java.lang.Object
  extended by org.springframework.integration.channel.MessagePublishingErrorHandler
All Implemented Interfaces:
ErrorHandler

public class MessagePublishingErrorHandler
extends java.lang.Object
implements ErrorHandler

ErrorHandler implementation that sends an ErrorMessage to a MessageChannel.

Author:
Mark Fisher

Field Summary
private  MessageChannel errorChannel
           
private  org.apache.commons.logging.Log logger
           
private  long sendTimeout
           
 
Constructor Summary
MessagePublishingErrorHandler()
           
MessagePublishingErrorHandler(MessageChannel errorChannel)
           
 
Method Summary
 void handle(java.lang.Throwable t)
           
 void setErrorChannel(MessageChannel errorChannel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private final org.apache.commons.logging.Log logger

errorChannel

private volatile MessageChannel errorChannel

sendTimeout

private final long sendTimeout
See Also:
Constant Field Values
Constructor Detail

MessagePublishingErrorHandler

public MessagePublishingErrorHandler()

MessagePublishingErrorHandler

public MessagePublishingErrorHandler(MessageChannel errorChannel)
Method Detail

setErrorChannel

public void setErrorChannel(MessageChannel errorChannel)

handle

public final void handle(java.lang.Throwable t)
Specified by:
handle in interface ErrorHandler