Package com.avoka.fc.core.service
Class EventInboxService
java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.CayenneService
com.avoka.fc.core.service.EventInboxService
Provides an event inbox service which handles event inbox entity creation and updating.
- Since:
- 24.4.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateInboxEvent
(ServiceDefinition serviceDefinition, String eventTopic, String eventPartition, String eventOffset, String key, String payload) create a new EventInbox entity.void
updateEventInboxToDelivered
(EventInbox eventInbox) update an eventInbox with delivered status.void
updateEventInboxToFailed
(EventInbox eventInbox, String bodyContent) update an eventInbox with Failed status.void
updateEventInboxToFailed
(Long eventId, String bodyContent) update an eventInbox with Failed status.void
updateEventInboxToInProcess
(EventInbox eventInbox) update an eventInbox with InProcess status.void
updateEventInboxToInQueue
(EventInbox eventInbox) update an eventInbox with InQueue status.Methods inherited from class com.avoka.fc.core.service.CayenneService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getDataDomain, getObjectForPK, getObjectStore, newObject, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, refetchEntity, refetchObject, registerNewObject, rollbackChanges, toMap, toMap
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
Constructor Details
-
EventInboxService
public EventInboxService()
-
-
Method Details
-
createInboxEvent
public EventInbox createInboxEvent(ServiceDefinition serviceDefinition, String eventTopic, String eventPartition, String eventOffset, String key, String payload) create a new EventInbox entity.- Parameters:
serviceDefinition
- the serviceDefinition (required)eventTopic
- the event Topic (required)eventPartition
- the event PartitioneventOffset
- the event Offset (required)key
- the keypayload
- the payload (required)- Returns:
- the created EventInbox entity
-
updateEventInboxToDelivered
update an eventInbox with delivered status.- Parameters:
eventInbox
- the eventInbox
-
updateEventInboxToFailed
update an eventInbox with Failed status.- Parameters:
eventInbox
- the eventInboxbodyContent
- The body content
-
updateEventInboxToFailed
update an eventInbox with Failed status.- Parameters:
eventId
- the eventInbox idbodyContent
- The body content
-
updateEventInboxToInQueue
update an eventInbox with InQueue status.- Parameters:
eventInbox
- the eventInbox
-
updateEventInboxToInProcess
update an eventInbox with InProcess status.- Parameters:
eventInbox
- the eventInbox
-