public class CompletionListener extends Object
Modifier and Type | Field and Description |
---|---|
(package private) ArrayList<CompletionListener> |
listeners |
static org.objectweb.util.monolog.api.Logger |
logger |
(package private) ArrayList<Message> |
messages |
(package private) Session |
session |
Constructor and Description |
---|
CompletionListener(Session session) |
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 org.objectweb.util.monolog.api.Logger logger
Session session
ArrayList<CompletionListener> listeners
public CompletionListener(Session session)
public void addCompletionListener(CompletionListener listener, Message message)
void onCompletion()
void onException(Exception exception)
exception
- the exceptionCopyright © 2013 ScalAgent D.T.. All Rights Reserved.