public interface EventConsumer
Title: Framework Support Library
Description: Defines a direct Event Consumer wrapping an instance of the EventListener
.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
ConsumerState |
getCurrentState()
Returns a current state of the consumer.
|
java.lang.String |
getEventFilter()
Returns the event filter associated with the consumer.
|
EventListener |
getEventListener()
Returns the event listener associated with the consumer.
|
java.lang.String |
getEventSelector()
Returns the event selector associated with the consumer.
|
java.lang.String |
getName()
Returns a name of the consumer.
|
boolean |
matchesEventId(java.lang.String eventId)
Checks if the specified event id matches an event filter of the consumer.
|
void |
setEventListener(EventListener listener)
Sets the event listener associated with the consumer.
|
void |
setEventSelector(java.lang.String eventSelector)
Sets the event selector associated with the consumer.
|
java.lang.String getName()
EventListener getEventListener()
void setEventListener(EventListener listener)
listener
- the event listener to be set.java.lang.String getEventFilter()
Filter
for detailed information about filters.java.lang.String getEventSelector()
EventDispatcher
for details.
null
means that the consumer has no selector.void setEventSelector(java.lang.String eventSelector) throws SelectorFormatException
EventDispatcher
for details.
null
means that the consumer has no selector.eventSelector
- the selector to be set.SelectorFormatException
- if the selector format is wrong.ConsumerState getCurrentState()
boolean matchesEventId(java.lang.String eventId)
eventId
- the event id to be checked.false
otherwise.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.