|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Receivers
Interface to be implemented by a receivers implementation. The implementation should also have a default constructor.
NOTE: There is no need to internally synchronize the caller handles that.
NOTE: This datastructure should have Set semantics. i.e. attempts to add a subscriber that is already present should be ignored. Or more explicitly a subscriber should present zero or once.
Method Summary | |
---|---|
void |
add(Subscription sub)
Add a receiver, ignored if the receiver is already present. |
Iterator |
iterator()
Get an iterator to loop over all receivers |
ArrayList |
listReceivers()
|
void |
remove(Subscription sub)
Remove a receiver |
int |
size()
|
Method Detail |
---|
int size()
ArrayList listReceivers()
void add(Subscription sub)
sub
- the receiver to addvoid remove(Subscription sub)
sub
- the receiver to removeIterator iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |