!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:
Patrik Nordwall 2015-09-14 11:08:22 +02:00
parent a45f31cecb
commit 5bd245fbc8
46 changed files with 1487 additions and 948 deletions

View file

@ -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()
}
}