public interface Message
The interface design is heavily influenced by Matt Welsh's SandStorm server, his demonstration of the SEDA architecture. We have deviated where we felt the design differences where better.
| Modifier and Type | Method and Description |
|---|---|
void |
attach(java.lang.Object attachment)
Attach an Object to the message.
|
void |
clear()
Clear the attachment.
|
java.lang.Object |
getAttachment()
Get the attachment associated with this Message.
|
java.lang.Object getAttachment()
void attach(java.lang.Object attachment)
attachment - Any arbitrary Object you wish to attach to the Messagevoid clear()