JAVA API
JAVA API
JAVA API
Java / JUnit API for akka.persistence.journal.JournalSpec.
In case your journal plugin needs some kind of setup or teardown, override the beforeAll
or afterAll
methods (don't forget to call super
in your overriden methods).
JAVA API
Java / JUnit consumable equivalent of akka.persistence.journal.JournalPerfSpec and akka.persistence.journal.JournalSpec.
This spec measures execution times of the basic operations that an akka.persistence.PersistentActor provides, using the provided Journal (plugin).
It is *NOT* meant to be a comprehensive benchmark, but rather aims to help plugin developers to easily determine if their plugin's performance is roughly as expected. It also validates the plugin still works under "more messages" scenarios.
The measurements are by default printed to
System.out
, if you want to customise this please override the #info method.The benchmark iteration and message counts are easily customisable by overriding these methods:
In case your journal plugin needs some kind of setup or teardown, override the
beforeAll
orafterAll
methods (don't forget to callsuper
in your overriden methods).akka.persistence.journal.JournalPerfSpec
akka.persistence.journal.JournalSpec