public class CompletionListener extends Object
Modifier and Type | Field and Description |
---|---|
(package private) ArrayList<CompletionListener> |
listeners |
static Logger |
logger |
(package private) MessageProducer |
messageProducer |
(package private) ArrayList<Message> |
messages |
(package private) Session |
session |
Constructor and Description |
---|
CompletionListener(Session session,
MessageProducer messageProducer) |
Modifier and Type | Method and Description |
---|---|
void |
addCompletionListener(CompletionListener listener,
Message message) |
(package private) void |
onCompletion()
Notifies the application that the message has been successfully sent
|
(package private) void |
onException(Exception exception)
Notifies user that the specified exception was thrown while attempting to
send the specified message.
|
String |
toString() |
public static Logger logger
Session session
MessageProducer messageProducer
ArrayList<CompletionListener> listeners
public CompletionListener(Session session, MessageProducer messageProducer)
public void addCompletionListener(CompletionListener listener, Message message)
void onCompletion()
void onException(Exception exception)
exception
- the exceptionCopyright © 2023 ScalAgent D.T.. All rights reserved.