|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Revision(value="$Revision: 1.7 $",
date="$Date: 2006/12/15 20:37:49 $",
tag="$Name: $")
public interface EventSource
A source of events, including a syndicate() and some form of
sequence numbering. For more information about
the event model, see rcf.core.concurrent.events.
TODO: Javadoc review, Seal/Finalize
| Method Summary | |
|---|---|
rcf.core.util.collection.ImmutableCollection<Class> |
events()
Return an immutable collection of all the classes of Events which
this source will generate and syndicate. |
int |
getSequenceNumber()
Get the current event sequence number for this source. |
int |
incSequenceNumber()
Get the current event sequence number for this source, and increase it for the next call to getSequenceNumber(). |
boolean |
isSyndicated()
Determine if this event source is syndicated; i.e. |
EventSyndicate |
syndicate()
Return the current syndicate for this event source, or allocate one if there isn't one. |
| Method Detail |
|---|
rcf.core.util.collection.ImmutableCollection<Class> events()
Events which
this source will generate and syndicate. This can be used to check if a
source will be will to generate specific events of interest to a potential
sink.
int getSequenceNumber()
1.
Sequence numbers can be used to guess at the ordering of events, and
to mark the in a log.
int incSequenceNumber()
getSequenceNumber(). Sequence numbers
should be monotonic, but need not have a step size of 1.
Sequence numbers can be used to guess at the ordering of events, and
to mark the in a log.
boolean isSyndicated()
true if there are one or more EventSinks
registered to receive events from this source.EventSyndicate syndicate()
null unless
events().ImmutableIterable.isEmpty() == true.
EventSink should register
with (EventSyndicate.add(rcf.core.util.reference.Reference, Class))
to receive events from this source.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||