|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Message
A Source implements the side of an event queue where queue elements are dequeued operations only.
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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
java.lang.Object getAttachment()
void attach(java.lang.Object attachment)
attachment
- Any arbitrary Object you wish to attach to the Messagevoid clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |