!per #18463 Make Persistence Query API explorable
* make the standard queries "single method interfaces" that may be implemented by a query journal plugin * remove hints (major problems with varargs anyway), the hints for standard queries should be given in configuration instead, e.g. refresh-interval
This commit is contained in:
parent
a45f31cecb
commit
5bd245fbc8
46 changed files with 1487 additions and 948 deletions
|
|
@ -86,11 +86,11 @@ object PersistentActorStashingSpec {
|
|||
class AsyncStashingPersistentActor(name: String) extends ExamplePersistentActor(name) {
|
||||
var stashed = false
|
||||
val receiveCommand: Receive = commonBehavior orElse {
|
||||
case Cmd("a") ⇒ persistAsync(Evt("a"))(updateState)
|
||||
case Cmd("a") ⇒ persistAsync(Evt("a"))(updateState)
|
||||
case Cmd("b") if !stashed ⇒
|
||||
stash(); stashed = true
|
||||
case Cmd("b") ⇒ persistAsync(Evt("b"))(updateState)
|
||||
case Cmd("c") ⇒ persistAsync(Evt("c"))(updateState); unstashAll()
|
||||
case Cmd("b") ⇒ persistAsync(Evt("b"))(updateState)
|
||||
case Cmd("c") ⇒ persistAsync(Evt("c"))(updateState); unstashAll()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue