get to the sequence number in an EventListener implementation

Hi List,

When you have your own EventListener interface implementation, you can get the payload, timestamp and some other stuff.
I wonder how it would be possible to get to the sequence number.

Kind regards,

Olger

Hi,

to get the sequence number, you should cast the EventMessage to a DomainEventMessage. The latter exposes the seqNo.

Cheers,

Allard

Ah, right. That’s pretty straightforward.
Thanks for your help…

I’ll update Scynapse to allow akka using full events (it is payload only currently) and update it to the latest axon version while I am at it.

Olger