|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I_PostSendListener
This interface handles ONLY asynchronous sending events.
Notify when a message from a queue is successfully send asynchronously.
Method Summary | |
---|---|
void |
postSend(MsgQueueEntry[] msgQueueEntries)
Called after a messages is send asynchronously from connection queue. |
boolean |
sendingFailed(MsgQueueEntry[] entries,
XmlBlasterException exception)
Called if an asynchronous message is rejected by the server. |
Method Detail |
---|
void postSend(MsgQueueEntry[] msgQueueEntries)
msgQueueEntries,
- includes the returned QoSboolean sendingFailed(MsgQueueEntry[] entries, XmlBlasterException exception)
If the server e.g. throws an IllegalArgument back to the client the message will most probably never succeed and retrying to send the message makes no sense. You can intercept this case here and eliminate the message.
ErrorCodes of type "communication.*" are not reported here as the dispatcher framework automatically handles reconnect and retry.
NOTE: For ErrorCodes of type "authentication.*" the connection will go to DEAD and the connection queue entries remain for pubSessionId>0. For pubSessionId<0 (none fail safe) the queue entries are removed (to be implemented TODO).
entries
- Each MsgQueueEntry includes the returned QoSexception
- The cause
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |