public interface Consumer<LISTENER,EVENT_FACTORY>
Consumer defines a contract for such translation.| Modifier and Type | Method and Description |
|---|---|
EVENT_FACTORY |
getEventFactory()
Does this consumer have an event factory already registered
|
boolean |
isRunning()
Is this consumer currently running
|
void |
setEventFactory(EVENT_FACTORY eventFactory)
Set event factory for this consumer
|
void |
setListener(LISTENER listener)
Set a listener on the underlying tech of this consumer
|
void |
start()
Start the consumer and any underlying tech
|
void |
stop()
Stop this consumer and any associated underlying tech
|
void setListener(LISTENER listener)
listener - void setEventFactory(EVENT_FACTORY eventFactory)
eventFactory - EVENT_FACTORY getEventFactory()
void start()
boolean isRunning()
void stop()
Copyright © 2007-2016 Ikasan. All Rights Reserved.