|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The Object type that will represent the content of the messagepublic interface MessageSender<T>
A simple interface for anything that sends a message. The implementation can support buffering, but it is not mandatory.
| Method Summary | |
|---|---|
void |
clear()
Empties the current queue of messages to be sent. |
void |
flush()
Should the implementation support buffering, calling this will clear the buffered messages and send them. |
void |
send(T content)
Adds a message for sending. |
| Method Detail |
|---|
void send(T content)
throws WabitPersistenceException
flush() to actually send the
messages.
content -
WabitPersistenceException
void flush()
throws WabitPersistenceException
WabitPersistenceExceptionvoid clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||