public class EventGeneratingConsumer extends AbstractConsumer implements ConfiguredResource<EventGeneratingConsumerConfiguration>
| Modifier and Type | Class and Description |
|---|---|
class |
EventGeneratingConsumer.EventGenerator
Simple event generator class implementation.
|
eventListener, flowEventFactory| Constructor and Description |
|---|
EventGeneratingConsumer() |
| Modifier and Type | Method and Description |
|---|---|
EventGeneratingConsumerConfiguration |
getConfiguration()
Getter for configuration
|
String |
getConfiguredResourceId()
Getter for configured resourceId
|
boolean |
isRunning()
Is the underlying event generator actively running
|
void |
setConfiguration(EventGeneratingConsumerConfiguration consumerConfiguration)
Setter for configuration
|
void |
setConfiguredResourceId(String configuredResourceId)
Setter for configured resource Id
|
void |
start()
Start the underlying event generator
|
void |
stop()
Stop the event generator
|
getEventFactory, setEventFactory, setListenerpublic void start()
start in interface Consumer<EventListener,EventFactory>public void stop()
stop in interface Consumer<EventListener,EventFactory>public boolean isRunning()
isRunning in interface Consumer<EventListener,EventFactory>public EventGeneratingConsumerConfiguration getConfiguration()
getConfiguration in interface Configured<EventGeneratingConsumerConfiguration>public String getConfiguredResourceId()
getConfiguredResourceId in interface ConfiguredResource<EventGeneratingConsumerConfiguration>public void setConfiguration(EventGeneratingConsumerConfiguration consumerConfiguration)
setConfiguration in interface Configured<EventGeneratingConsumerConfiguration>consumerConfiguration - public void setConfiguredResourceId(String configuredResourceId)
setConfiguredResourceId in interface ConfiguredResource<EventGeneratingConsumerConfiguration>configuredResourceId - Copyright © 2007-2016 Ikasan. All Rights Reserved.