per #15423 Remove deprecated features from akka-persistence
* remove channels * remove View * remove Processor * collapse the complicated internal state management that was spread out between Processor, Eventsourced and Recovery * remove Recovery trait, this caused some duplication between Eventsourced and PersistentView, but but the enhanced PersistentView will not be based on recovery infrastructure, and therefore PersistentView code will be replaced anyway * remove PersistentBatch * remove LoopMessage * remove deleteMessages of individual messages * remove Persistent, PersistentRepr and PersistentImpl are kept * remove processorId * update doc sample code * note in migration guide about persistenceId * rename Resequencable to PersistentEnvelope
This commit is contained in:
parent
86a5b3d9d7
commit
c566d5a106
84 changed files with 2162 additions and 9560 deletions
|
|
@ -7,38 +7,21 @@ package akka.persistence.journal.japi;
|
|||
import akka.persistence.*;
|
||||
|
||||
interface SyncWritePlugin {
|
||||
//#sync-write-plugin-api
|
||||
/**
|
||||
* Java API, Plugin API: synchronously writes a batch of persistent messages to the
|
||||
* journal. The batch write must be atomic i.e. either all persistent messages in the
|
||||
* batch are written or none.
|
||||
*/
|
||||
void doWriteMessages(Iterable<PersistentRepr> messages);
|
||||
//#sync-write-plugin-api
|
||||
/**
|
||||
* Java API, Plugin API: synchronously writes a batch of persistent messages
|
||||
* to the journal. The batch write must be atomic i.e. either all persistent
|
||||
* messages in the batch are written or none.
|
||||
*/
|
||||
void doWriteMessages(Iterable<PersistentRepr> messages);
|
||||
|
||||
/**
|
||||
* Java API, Plugin API: synchronously writes a batch of delivery confirmations to
|
||||
* the journal.
|
||||
*
|
||||
* @deprecated doWriteConfirmations will be removed, since Channels will be removed (since 2.3.4)
|
||||
*/
|
||||
@Deprecated void doWriteConfirmations(Iterable<PersistentConfirmation> confirmations);
|
||||
|
||||
/**
|
||||
* Java API, Plugin API: synchronously deletes messages identified by `messageIds`
|
||||
* from the journal. If `permanent` is set to `false`, the persistent messages are
|
||||
* marked as deleted, otherwise they are permanently deleted.
|
||||
*
|
||||
* @deprecated doDeleteMessages will be removed (since 2.3.4)
|
||||
*/
|
||||
@Deprecated void doDeleteMessages(Iterable<PersistentId> messageIds, boolean permanent);
|
||||
|
||||
/**
|
||||
* Java API, Plugin API: synchronously deletes all persistent messages up to
|
||||
* `toSequenceNr`. If `permanent` is set to `false`, the persistent messages are
|
||||
* marked as deleted, otherwise they are permanently deleted.
|
||||
*
|
||||
* @see AsyncRecoveryPlugin
|
||||
*/
|
||||
void doDeleteMessagesTo(String persistenceId, long toSequenceNr, boolean permanent);
|
||||
//#sync-write-plugin-api
|
||||
/**
|
||||
* Java API, Plugin API: synchronously deletes all persistent messages up to
|
||||
* `toSequenceNr`. If `permanent` is set to `false`, the persistent messages
|
||||
* are marked as deleted, otherwise they are permanently deleted.
|
||||
*
|
||||
* @see AsyncRecoveryPlugin
|
||||
*/
|
||||
void doDeleteMessagesTo(String persistenceId, long toSequenceNr, boolean permanent);
|
||||
//#sync-write-plugin-api
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue