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

java.lang.Object
  extended by org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler
      extended by org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler
          extended by org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler
All Implemented Interfaces:
javax.jms.ExceptionListener, DLQHandler

public class GenericDLQHandler
extends JBossMQDLQHandler

A Generic DLQ Handler

Version:
$Revision: 57189 $
Author:
Adrian Brock

Nested Class Summary
protected static class GenericDLQHandler.ResentInfo
          Resent Info
 
Field Summary
protected  HashMap resent
          Resent messages Map
 
Fields inherited from class org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler
JMS_JBOSS_REDELIVERY_COUNT, JMS_JBOSS_REDELIVERY_LIMIT, maxResent
 
Fields inherited from class org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler
activation, connection, dlq, log
 
Fields inherited from interface org.jboss.resource.adapter.jms.inflow.DLQHandler
JBOSS_ORIG_DESTINATION, JBOSS_ORIG_MESSAGEID, PROPERTY_DELIVERY_COUNT
 
Constructor Summary
GenericDLQHandler()
           
 
Method Summary
protected  void clearResentCounter(String id)
          Remove the resent counter for the message id
protected  boolean handleDelivery(javax.jms.Message msg)
          Do we handle the message?
protected  int incrementResentCounter(String id)
          Increment the resent counter for the message id
 void messageDelivered(javax.jms.Message msg)
          Notification that the message was delivered
 
Methods inherited from class org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler
setup
 
Methods inherited from class org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler
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 HashMap resent
Resent messages Map

Constructor Detail

GenericDLQHandler

public GenericDLQHandler()
Method Detail

messageDelivered

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

Specified by:
messageDelivered in interface DLQHandler
Overrides:
messageDelivered in class AbstractDLQHandler
Parameters:
msg - the message that was delivered

handleDelivery

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

Overrides:
handleDelivery in class JBossMQDLQHandler
Parameters:
msg - the message to handle
Returns:
true when we handle it

incrementResentCounter

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

Parameters:
id - the message id of the message

clearResentCounter

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

Parameters:
id - the message id of the message


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.