Interface OutgoingMessageQueueListener
public interface OutgoingMessageQueueListener
Listener for outgoing message queue.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbytesSent(int byte_count) The given number of bytes has been sent.booleanmessageAdded(Message message) The given message has just been added to the queue.voidmessageSent(Message message) The given message has just been completely sent.
-
Method Details
-
messageAdded
The given message has just been added to the queue.- Parameters:
message- added for queuing- Returns:
- true if this message addition is allowed, false if it should be immediately removed without being queued or sent
-
messageSent
The given message has just been completely sent.- Parameters:
message-
-
bytesSent
void bytesSent(int byte_count) The given number of bytes has been sent.- Parameters:
byte_count-
-