Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SendToQueueExceptionHandler Members

SendToQueueExceptionHandler overview

Public Instance Constructors

SendToQueueExceptionHandler Constructor Initializes a new instance of the SendToQueueExceptionHandler class.

Public Instance Properties

ApplicationContext (inherited from AbstractSendToQueueExceptionHandler) Gets or sets the IApplicationContext that this object runs in.
MaxRetry (inherited from AbstractSendToQueueExceptionHandler) Gets or sets the maximum retry count to reattempt processing of a message that has thrown an exception
MessageAlreadyProcessedExceptionNames Gets or sets the exception anmes that indicate the message has already been processed. If the exception thrown matches one of these names then the returned TransactionAction is Commit to remove it from the queue.
MessageQueueFactory (inherited from AbstractSendToQueueExceptionHandler) Gets or sets the message queue factory.
MessageQueueObjectName (inherited from AbstractSendToQueueExceptionHandler) Gets or sets the name of the message queue object to send the message that cannot be processed successfully after MaxRetry delivery attempts.

Public Instance Methods

AfterPropertiesSet (inherited from AbstractSendToQueueExceptionHandler) Ensure that the MessageQueueObject name is set and creates a DefaultMessageQueueFactory if no IMessageQueueFactory is specified.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
OnException Called when an exception is thrown during listener processing under the scope of a MessageQueueTransaction.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

messageMap (inherited from AbstractSendToQueueExceptionHandler) In-memory storage to keep track of Message Ids that have been already processed.
messageMapMonitor (inherited from AbstractSendToQueueExceptionHandler) Synchronization object for access to messageMap protected variable

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
IsMessageAlreadyProcessedException Determines whether this exception was already processed.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
ProcessExceptionalMessage Template method called before the message that caused the exception is send to another queue. The default behavior is to set the CorrelationId to the current message's Id value for tracking purposes. Subclasses can use other means, perhaps using the AppSpecific field or modifying the body of the message to a known shared format that keeps track of the full 'lifecycle' of the message as it goes from queue-to-queue.
SendMessageToQueue Sends the message to queue.

See Also

SendToQueueExceptionHandler Class | Spring.Messaging.Listener Namespace