Package org.chenile.core.model
Class ChenileEventDefinition
java.lang.Object
org.chenile.core.model.ChenileEventDefinition
- All Implemented Interfaces:
ModuleAware
Chenile keeps track of events. It maps multiple combinations of Service/Operations to
an event ID.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEventSubscriber
(ChenileServiceDefinition serviceDefinition, OperationDefinition operationDefinition) getId()
getTopic()
Class<?>
getType()
void
void
setOriginatingModuleName
(String originatingModuleName) void
void
-
Field Details
-
id
Event ID. All chenile services listen for an event specified by this ID. -
topic
The Kafka topic at which Chenile listens for this event -
type
-
originatingModuleName
-
eventSubscribers
-
-
Constructor Details
-
ChenileEventDefinition
public ChenileEventDefinition()
-
-
Method Details
-
getId
-
setId
-
getType
-
setType
-
getTopic
-
setTopic
-
getEventSubscribers
-
addEventSubscriber
public void addEventSubscriber(ChenileServiceDefinition serviceDefinition, OperationDefinition operationDefinition) -
getOriginatingModuleName
-
setOriginatingModuleName
- Specified by:
setOriginatingModuleName
in interfaceModuleAware
-