public class PriceConsumer extends java.lang.Object implements Consumer<EventListener,EventFactory<FlowEvent<?,?>>>, PriceTechListener
| Constructor and Description |
|---|
PriceConsumer(PriceTechImpl priceTechImpl)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
EventFactory<FlowEvent<?,?>> |
getEventFactory() |
boolean |
isRunning()
Is the underlying tech actively running
|
void |
onPrice(PriceTechMessage message)
Callback method from the underlying tech.
|
void |
setEventFactory(EventFactory<FlowEvent<?,?>> flowEventFactory) |
void |
setListener(EventListener eventListener)
Set the consumer event listener
|
void |
start()
Start the underlying tech
|
void |
stop()
Stop the underlying tech
|
public PriceConsumer(PriceTechImpl priceTechImpl)
priceTechImpl - a PriceTechImplpublic void start()
start in interface Consumer<EventListener,EventFactory<FlowEvent<?,?>>>public void stop()
stop in interface Consumer<EventListener,EventFactory<FlowEvent<?,?>>>public boolean isRunning()
isRunning in interface Consumer<EventListener,EventFactory<FlowEvent<?,?>>>public void setListener(EventListener eventListener)
setListener in interface Consumer<EventListener,EventFactory<FlowEvent<?,?>>>eventListener - a EventListenerpublic void onPrice(PriceTechMessage message)
onPrice in interface PriceTechListenerpublic void setEventFactory(EventFactory<FlowEvent<?,?>> flowEventFactory)
setEventFactory in interface Consumer<EventListener,EventFactory<FlowEvent<?,?>>>public EventFactory<FlowEvent<?,?>> getEventFactory()
getEventFactory in interface Consumer<EventListener,EventFactory<FlowEvent<?,?>>>Copyright © 2007-2018 Ikasan. All Rights Reserved.