Class CompletionListener
- java.lang.Object
-
- org.objectweb.joram.client.jms.connection.CompletionListener
-
public class CompletionListener extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ArrayList<CompletionListener>listenersstatic org.objectweb.util.monolog.api.Loggerlogger(package private) MessageProducermessageProducer(package private) ArrayList<Message>messages(package private) Sessionsession
-
Constructor Summary
Constructors Constructor Description CompletionListener(Session session, MessageProducer messageProducer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCompletionListener(CompletionListener listener, Message message)(package private) voidonCompletion()Notifies the application that the message has been successfully sent(package private) voidonException(Exception exception)Notifies user that the specified exception was thrown while attempting to send the specified message.StringtoString()
-
-
-
Field Detail
-
logger
public static org.objectweb.util.monolog.api.Logger logger
-
session
Session session
-
messageProducer
MessageProducer messageProducer
-
listeners
ArrayList<CompletionListener> listeners
-
-
Constructor Detail
-
CompletionListener
public CompletionListener(Session session, MessageProducer messageProducer)
-
-
Method Detail
-
addCompletionListener
public void addCompletionListener(CompletionListener listener, Message message)
-
onCompletion
void onCompletion()
Notifies the application that the message has been successfully sent
-
onException
void onException(Exception exception)
Notifies user that the specified exception was thrown while attempting to send the specified message. If an exception occurs it is undefined whether or not the message was successfully sent.- Parameters:
exception- the exception
-
-