|
Joram 5.1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.objectweb.joram.mom.util.DMQManager
public class DMQManager
The DMQManager is made to stock the dead messages before sending
them to the dead message queue, only if such a queue is defined.
| Field Summary | |
|---|---|
static org.objectweb.util.monolog.api.Logger |
logger
|
| Constructor Summary | |
|---|---|
DMQManager(fr.dyade.aaa.agent.AgentId currentDestDmq,
fr.dyade.aaa.agent.AgentId senderId)
Creates a DMQManager. |
|
DMQManager(fr.dyade.aaa.agent.AgentId specificDmq,
fr.dyade.aaa.agent.AgentId currentDestDmq,
fr.dyade.aaa.agent.AgentId senderId)
Creates a DMQManager. |
|
| Method Summary | |
|---|---|
void |
addDeadMessage(Message mess,
short reason)
Stocks a dead message waiting to be sent to the DMQ. |
void |
sendToDMQ()
Sends previously stocked messages to the appropriate DMQ. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static org.objectweb.util.monolog.api.Logger logger
| Constructor Detail |
|---|
public DMQManager(fr.dyade.aaa.agent.AgentId specificDmq,
fr.dyade.aaa.agent.AgentId currentDestDmq,
fr.dyade.aaa.agent.AgentId senderId)
specificDmq is used in priority. If
null, destination DMQ is used if it exists, else default DMQ
is used. If none exists, dead messages will be lost.
specificDmq - Identifier of the dead message queue to use in priority.currentDestDmq - The DMQ of the destinationsenderId - The id of the destination. This is used to avoid sending to
itself.
public DMQManager(fr.dyade.aaa.agent.AgentId currentDestDmq,
fr.dyade.aaa.agent.AgentId senderId)
currentDestDmq - The DMQ of the destinationsenderId - The id of the destination. This is used to avoid sending to
itself.| Method Detail |
|---|
public void addDeadMessage(Message mess,
short reason)
mess - The message to stockreason - The reason explaining why the message has to be send to the DMQ.
It can be one of the following: EXPIRED,
NOT_WRITEABLE, UNDELIVERABLE,
ADMIN_DELETED, DELETED_DEST,
QUEUE_FULL or UNEXPECTED_ERROR.public void sendToDMQ()
|
Joram 5.1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||