!per #3707 Channel enhancements
- Persistent channel - ConfirmablePersistent message type delivered by channel - Sender resolution performance improvements * unstash() instead of unstashAll() These enhancements required the following changes - Unified implementation of processor stash and user stash - Persistence message plugin API separated from implementation - Physical deletion of messages
This commit is contained in:
parent
8fb59a0bc6
commit
ba9fc4da46
41 changed files with 2167 additions and 722 deletions
|
|
@ -117,7 +117,7 @@ trait PersistenceDocSpec {
|
|||
|
||||
class MyDestination extends Actor {
|
||||
def receive = {
|
||||
case p @ Persistent(payload, _) ⇒ {
|
||||
case p @ ConfirmablePersistent(payload, _) ⇒ {
|
||||
println(s"received ${payload}")
|
||||
p.confirm()
|
||||
}
|
||||
|
|
@ -243,4 +243,17 @@ trait PersistenceDocSpec {
|
|||
//#batch-write
|
||||
system.shutdown()
|
||||
}
|
||||
|
||||
new AnyRef {
|
||||
import akka.actor._
|
||||
trait MyActor extends Actor {
|
||||
val destination: ActorRef = null
|
||||
//#persistent-channel-example
|
||||
val channel = context.actorOf(PersistentChannel.props(),
|
||||
name = "myPersistentChannel")
|
||||
|
||||
channel ! Deliver(Persistent("example"), destination)
|
||||
//#persistent-channel-example
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue