public interface AsyncWriteProxy extends AsyncWriteJournal, Stash
A journal that delegates actual storage to a target actor. For testing only.
Modifier and Type | Interface and Description |
---|---|
static class |
AsyncWriteProxy.SetStore |
static class |
AsyncWriteProxy.SetStore$ |
AsyncWriteJournal.Desequenced, AsyncWriteJournal.Desequenced$, AsyncWriteJournal.Resequencer
Actor.emptyBehavior$, Actor.ignoringBehavior$
Modifier and Type | Method and Description |
---|---|
scala.concurrent.Future<scala.runtime.BoxedUnit> |
asyncDeleteMessagesTo(java.lang.String persistenceId,
long toSequenceNr,
boolean permanent)
Plugin API: asynchronously deletes all persistent messages up to
toSequenceNr
(inclusive). |
scala.concurrent.Future<java.lang.Object> |
asyncReadHighestSequenceNr(java.lang.String persistenceId,
long fromSequenceNr)
Plugin API: asynchronously reads the highest stored sequence number for the
given
persistenceId . |
scala.concurrent.Future<scala.runtime.BoxedUnit> |
asyncReplayMessages(java.lang.String persistenceId,
long fromSequenceNr,
long toSequenceNr,
long max,
scala.Function1<PersistentRepr,scala.runtime.BoxedUnit> replayCallback)
Plugin API: asynchronously replays persistent messages.
|
scala.concurrent.Future<scala.runtime.BoxedUnit> |
asyncWriteMessages(scala.collection.immutable.Seq<PersistentRepr> messages)
Plugin API: asynchronously writes a batch of persistent messages to the journal.
|
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
initialized() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive()
This defines the initial actor behavior, it must return a partial function
with the actor logic.
|
ActorRef |
store() |
Timeout |
timeout() |
extension, publish, resequencer, resequencerCounter
persistentPrepareWrite, preparePersistentBatch
postStop, preRestart
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, postRestart, preStart, self, sender, supervisorStrategy, unhandled
actorCell, capacity, clearStash, context, enqueueFirst, mailbox, prepend, self, stash, theStash, unstash, unstashAll, unstashAll
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> initialized()
ActorRef store()
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actor
receive
in interface Actor
receive
in interface AsyncWriteJournal
Timeout timeout()
scala.concurrent.Future<scala.runtime.BoxedUnit> asyncWriteMessages(scala.collection.immutable.Seq<PersistentRepr> messages)
AsyncWriteJournal
asyncWriteMessages
in interface AsyncWriteJournal
messages
- (undocumented)scala.concurrent.Future<scala.runtime.BoxedUnit> asyncDeleteMessagesTo(java.lang.String persistenceId, long toSequenceNr, boolean permanent)
AsyncWriteJournal
toSequenceNr
(inclusive). If permanent
is set to false
, the persistent messages are marked
as deleted, otherwise they are permanently deleted.asyncDeleteMessagesTo
in interface AsyncWriteJournal
persistenceId
- (undocumented)toSequenceNr
- (undocumented)permanent
- (undocumented)scala.concurrent.Future<scala.runtime.BoxedUnit> asyncReplayMessages(java.lang.String persistenceId, long fromSequenceNr, long toSequenceNr, long max, scala.Function1<PersistentRepr,scala.runtime.BoxedUnit> replayCallback)
AsyncRecovery
replayCallback
. The returned future must be completed
when all messages (matching the sequence number bounds) have been replayed.
The future must be completed with a failure if any of the persistent messages
could not be replayed.
The replayCallback
must also be called with messages that have been marked
as deleted. In this case a replayed message's deleted
method must return
true
.
asyncReplayMessages
in interface AsyncRecovery
persistenceId
- persistent actor id.fromSequenceNr
- sequence number where replay should start (inclusive).toSequenceNr
- sequence number where replay should end (inclusive).max
- maximum number of messages to be replayed.replayCallback
- called to replay a single message. Can be called from any
thread.
AsyncWriteJournal
,
SyncWriteJournal
scala.concurrent.Future<java.lang.Object> asyncReadHighestSequenceNr(java.lang.String persistenceId, long fromSequenceNr)
AsyncRecovery
persistenceId
.
asyncReadHighestSequenceNr
in interface AsyncRecovery
persistenceId
- persistent actor id.fromSequenceNr
- hint where to start searching for the highest sequence
number.