|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChainedEventListenerFactory
Interface which indicates that an object is capable of acting as a factory
for producing event listeners which are aware of an association with
a filtered event stream produced by an EventFilter
.
Classes which implement this factory interface are intended to be used with event filters which split a single event stream into multiple event streams based on some correlation of events with particular program entities, such as threads or object instances. Such filters may need to be able to create new listeners on demand, since it is often the case that it is not possible to know a priori how many entities will be created by the program.
Method Summary | |
---|---|
ChainedEventListener |
createEventListener(ChainedEventListener parent,
long streamId,
java.lang.String streamName)
Creates a new event listener to be associated with a particular program entity. |
Method Detail |
---|
ChainedEventListener createEventListener(ChainedEventListener parent, long streamId, java.lang.String streamName) throws FactoryException
parent
- Event listener from which the newly created chained
listener will receive events. It is left to implementors' discretion
whether to permit the passing of null
, though it is
generally not recommended.streamId
- Unique identifier associated with the program entity,
or in the more generic sense, the event stream, to which this listener
will be attached.streamName
- Name of the entity or entity type associated with
the stream.
FactoryException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |