|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler
An abstract DLQ handler.
Field Summary | |
protected JmsActivation (src) |
activation
The activation |
protected QueueConnection (src) |
connection
The DLQ Connection |
protected Queue (src) |
dlq
The DLQ |
protected static Logger (src) |
log
The logger |
Fields inherited from interface org.jboss.resource.adapter.jms.inflow.DLQHandler (src) |
JBOSS_ORIG_DESTINATION, JBOSS_ORIG_MESSAGEID |
Constructor Summary | |
AbstractDLQHandler()
|
Method Summary | |
protected void |
doSend(Message (src) msg,
int deliveryMode,
int priority,
long timeToLive)
Do the message send |
protected int |
getDeliveryMode(Message (src) msg)
Get the delivery mode for the DLQ message |
protected int |
getPriority(Message (src) msg)
Get the priority for the DLQ message |
protected long |
getTimeToLive(Message (src) msg)
Get the time to live for the DLQ message |
protected abstract boolean |
handleDelivery(Message (src) msg)
Do we handle the message? |
boolean |
handleRedeliveredMessage(Message (src) msg)
Check whether the DLQ should handle the message |
protected void |
handleSendError(Message (src) msg,
java.lang.Throwable t)
Handle a failure to send the message to the dlq |
protected Message (src) |
makeWritable(Message (src) msg)
Make a writable copy of the message |
void |
messageDelivered(Message (src) msg)
Notification that the message was delivered |
void |
onException(JMSException (src) exception)
Notifies user of a JMS exception. |
protected void |
sendToDLQ(Message (src) msg)
Send the message to the dlq |
void |
setup(JmsActivation (src) activation,
javax.naming.Context ctx)
Set up the DLQ |
protected void |
setupDLQConnection(javax.naming.Context ctx)
Setup the DLQ Connection |
protected void |
setupDLQDestination(javax.naming.Context ctx)
Setup the DLQ Destination |
void |
teardown()
Tear down the DLQ |
protected void |
teardownDLQConnection()
Teardown the DLQ Connection |
protected void |
teardownDLQDestination()
Teardown the DLQ Destination |
protected void |
warnDLQ(Message (src) msg,
int count,
int max)
Warn that a message is being handled by the DLQ |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final Logger (src) log
protected JmsActivation (src) activation
protected Queue (src) dlq
protected QueueConnection (src) connection
Constructor Detail |
public AbstractDLQHandler()
Method Detail |
public boolean handleRedeliveredMessage(Message (src) msg)
DLQHandler (src)
handleRedeliveredMessage
in interface DLQHandler (src)
public void messageDelivered(Message (src) msg)
DLQHandler (src)
messageDelivered
in interface DLQHandler (src)
public void setup(JmsActivation (src) activation, javax.naming.Context ctx) throws java.lang.Exception
DLQHandler (src)
setup
in interface DLQHandler (src)
activation
- the activation
java.lang.Exception
- for any errorpublic void teardown()
DLQHandler (src)
teardown
in interface DLQHandler (src)
public void onException(JMSException (src) exception)
ExceptionListener (src)
onException
in interface ExceptionListener (src)
exception
- the JMS exceptionprotected void setupDLQDestination(javax.naming.Context ctx) throws java.lang.Exception
ctx
- the naming context
java.lang.Exception
- for any errorprotected void teardownDLQDestination()
protected void setupDLQConnection(javax.naming.Context ctx) throws java.lang.Exception
ctx
- the naming context
java.lang.Exception
- for any errorprotected void teardownDLQConnection()
protected abstract boolean handleDelivery(Message (src) msg)
msg
- the message to handle
protected void warnDLQ(Message (src) msg, int count, int max)
msg
- count
- the number of redeliversmax
- the maximum number of redeliveriesprotected void sendToDLQ(Message (src) msg)
protected int getDeliveryMode(Message (src) msg)
msg
- the message
protected int getPriority(Message (src) msg)
msg
- the message
protected long getTimeToLive(Message (src) msg)
msg
- the message
protected Message (src) makeWritable(Message (src) msg)
msg
- the message
protected void doSend(Message (src) msg, int deliveryMode, int priority, long timeToLive)
msg
- the messageprotected void handleSendError(Message (src) msg, java.lang.Throwable t)
msg
- the messaget
- the error
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |