|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectakka.persistence.journal.japi.AsyncRecovery
akka.persistence.journal.japi.SyncWriteJournal
public abstract class SyncWriteJournal
Java API: abstract journal, optimized for synchronous writes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface akka.actor.Actor |
|---|
Actor.emptyBehavior$ |
| Constructor Summary | |
|---|---|
SyncWriteJournal()
|
|
| Method Summary | |
|---|---|
void |
deleteMessages(scala.collection.immutable.Seq<PersistentId> messageIds,
boolean permanent)
Plugin API: synchronously deletes messages identified by messageIds from the
journal. |
void |
deleteMessagesTo(java.lang.String persistenceId,
long toSequenceNr,
boolean permanent)
Plugin API: synchronously deletes all persistent messages up to toSequenceNr
(inclusive). |
scala.concurrent.Future<java.lang.Long> |
doAsyncReadHighestSequenceNr(java.lang.String persistenceId,
long fromSequenceNr)
Java API, Plugin API: asynchronously reads the highest stored sequence number for the given `persistenceId`. |
scala.concurrent.Future<java.lang.Void> |
doAsyncReplayMessages(java.lang.String persistenceId,
long fromSequenceNr,
long toSequenceNr,
long max,
Procedure<PersistentRepr> replayCallback)
Java API, Plugin API: asynchronously replays persistent messages. |
void |
doDeleteMessages(java.lang.Iterable<PersistentId> messageIds,
boolean permanent)
Deprecated. doDeleteMessages will be removed (since 2.3.4) |
void |
doDeleteMessagesTo(java.lang.String persistenceId,
long toSequenceNr,
boolean permanent)
Java API, Plugin API: synchronously deletes all persistent messages up to `toSequenceNr`. |
void |
doWriteConfirmations(java.lang.Iterable<PersistentConfirmation> confirmations)
Deprecated. doWriteConfirmations will be removed, since Channels will be removed (since 2.3.4) |
void |
doWriteMessages(java.lang.Iterable<PersistentRepr> messages)
Java API, Plugin API: synchronously writes a batch of persistent messages to the journal. |
void |
writeConfirmations(scala.collection.immutable.Seq<PersistentConfirmation> confirmations)
Plugin API: synchronously writes a batch of delivery confirmations to the journal. |
void |
writeMessages(scala.collection.immutable.Seq<PersistentRepr> messages)
Plugin API: synchronously writes a batch of persistent messages to the journal. |
| Methods inherited from class akka.persistence.journal.japi.AsyncRecovery |
|---|
asyncReadHighestSequenceNr, asyncReplayMessages |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface akka.persistence.journal.SyncWriteJournal |
|---|
extension, publish, receive |
| Methods inherited from interface akka.actor.Actor |
|---|
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, postRestart, postStop, preRestart, preStart, self, sender, supervisorStrategy, unhandled |
| Methods inherited from interface akka.persistence.journal.WriteJournalBase |
|---|
persistentPrepareWrite, preparePersistentBatch |
| Methods inherited from interface akka.persistence.journal.AsyncRecovery |
|---|
asyncReadHighestSequenceNr, asyncReplayMessages |
| Constructor Detail |
|---|
public SyncWriteJournal()
| Method Detail |
|---|
public final void writeMessages(scala.collection.immutable.Seq<PersistentRepr> messages)
SyncWriteJournal
writeMessages in interface SyncWriteJournalmessages - (undocumented)public final void writeConfirmations(scala.collection.immutable.Seq<PersistentConfirmation> confirmations)
SyncWriteJournal
writeConfirmations in interface SyncWriteJournalconfirmations - (undocumented)
public final void deleteMessages(scala.collection.immutable.Seq<PersistentId> messageIds,
boolean permanent)
SyncWriteJournalmessageIds from the
journal. If permanent is set to false, the persistent messages are marked as
deleted, otherwise they are permanently deleted.
deleteMessages in interface SyncWriteJournalmessageIds - (undocumented)permanent - (undocumented)
public final void deleteMessagesTo(java.lang.String persistenceId,
long toSequenceNr,
boolean permanent)
SyncWriteJournaltoSequenceNr
(inclusive). If permanent is set to false, the persistent messages are marked
as deleted, otherwise they are permanently deleted.
deleteMessagesTo in interface SyncWriteJournalpersistenceId - (undocumented)toSequenceNr - (undocumented)permanent - (undocumented)public void doWriteMessages(java.lang.Iterable<PersistentRepr> messages)
@Deprecated public void doWriteConfirmations(java.lang.Iterable<PersistentConfirmation> confirmations)
@Deprecated
public void doDeleteMessages(java.lang.Iterable<PersistentId> messageIds,
boolean permanent)
public void doDeleteMessagesTo(java.lang.String persistenceId,
long toSequenceNr,
boolean permanent)
AsyncRecoveryPlugin
public scala.concurrent.Future<java.lang.Void> doAsyncReplayMessages(java.lang.String persistenceId,
long fromSequenceNr,
long toSequenceNr,
long max,
Procedure<PersistentRepr> replayCallback)
persistenceId - processor 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.
public scala.concurrent.Future<java.lang.Long> doAsyncReadHighestSequenceNr(java.lang.String persistenceId,
long fromSequenceNr)
persistenceId - processor id.fromSequenceNr - hint where to start searching for the highest sequence
number.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||