org.jboss.resource.adapter.jms.inflow.dlq
Class GenericDLQHandler

java.lang.Object
  extended byorg.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler (src) 
      extended byorg.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler (src) 
          extended byorg.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler
All Implemented Interfaces:
DLQHandler (src) , ExceptionListener (src)

public class GenericDLQHandler
extends JBossMQDLQHandler (src)

A Generic DLQ Handler


Nested Class Summary
protected static class GenericDLQHandler.ResentInfo (src)
          Resent Info
 
Field Summary
protected  java.util.HashMap resent
          Resent messages Map
 
Fields inherited from class org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler (src)
JMS_JBOSS_REDELIVERY_COUNT, JMS_JBOSS_REDELIVERY_LIMIT, maxResent
 
Fields inherited from class org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler (src)
activation, connection, dlq, log
 
Fields inherited from interface org.jboss.resource.adapter.jms.inflow.DLQHandler (src)
JBOSS_ORIG_DESTINATION, JBOSS_ORIG_MESSAGEID
 
Constructor Summary
GenericDLQHandler()
           
 
Method Summary
protected  void clearResentCounter(java.lang.String id)
          Remove the resent counter for the message id
protected  boolean handleDelivery(Message (src)  msg)
          Do we handle the message?
protected  int incrementResentCounter(java.lang.String id)
          Increment the resent counter for the message id
 void messageDelivered(Message (src)  msg)
          Notification that the message was delivered
 
Methods inherited from class org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler (src)
setup
 
Methods inherited from class org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler (src)
doSend, getDeliveryMode, getPriority, getTimeToLive, handleRedeliveredMessage, handleSendError, makeWritable, onException, sendToDLQ, setupDLQConnection, setupDLQDestination, teardown, teardownDLQConnection, teardownDLQDestination, warnDLQ
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resent

protected java.util.HashMap resent
Resent messages Map

Constructor Detail

GenericDLQHandler

public GenericDLQHandler()
Method Detail

messageDelivered

public void messageDelivered(Message (src)  msg)
Description copied from interface: DLQHandler (src)
Notification that the message was delivered

Specified by:
messageDelivered in interface DLQHandler (src)
Overrides:
messageDelivered in class AbstractDLQHandler (src)

handleDelivery

protected boolean handleDelivery(Message (src)  msg)
Description copied from class: AbstractDLQHandler (src)
Do we handle the message?

Overrides:
handleDelivery in class JBossMQDLQHandler (src)

incrementResentCounter

protected int incrementResentCounter(java.lang.String id)
Increment the resent counter for the message id

Parameters:
id - the message id of the message

clearResentCounter

protected void clearResentCounter(java.lang.String id)
Remove the resent counter for the message id

Parameters:
id - the message id of the message