be.wegenenverkeer.atomium.client
feed and actor config
format for EventBus events
Reads for reading entries in the feed
Abstract method to be implemented by concrete AtomiumFeedClients.
Abstract method to be implemented by concrete AtomiumFeedClients. Should convert a NewFeedEntryReceived message (containing the feed entry and position) to an event of type EVENT. The event will than be published via the publishEvent method, after it has been persisted.
a message that contains a new feed entry and position
an event of type EVENT
New entries in the feed are transformed into events.
New entries in the feed are transformed into events. This method will be called with the event as parameter when new entries are received.
The event that is based on an new entry in the feed.
Implement this method to get informed about the status of the feed client.
Implement this method to get informed about the status of the feed client. The default implementation just ignores the info.
the current status
(Since version 2.3.4) currentPersistentMessage will be removed, sequence number can be retrieved with lastSequenceNr
.
(Since version 2.3.4) deleteMessage(sequenceNr) will be removed. Instead, validate before persist, and use deleteMessages for pruning.
(Since version 2.3.4) deleteMessage(sequenceNr) will be removed. Instead, validate before persist, and use deleteMessages for pruning.
(Since version 2.3.4) getCurrentPersistentMessage will be removed, sequence number can be retrieved with lastSequenceNr
.
(Since version 2.3.4) Override persistenceId: String
instead. Processor will be removed.
Generic Actor that consumes Atomium feeds (in json format) via the AtomiumClient. If the feed handling goes wrong, the actor will stop (whatever the failure type is). It is therefore suggested to run this actor within a BackoffSupervisor or similar construct.
This actor only sends messages to itself. The feed entries are reported by the publishEvent method.
It's the job of the subclass to decide what to do with these entries.
type of the event that will be put on the eventbus
(domain) type to deserialize the json feed entries to