/** * Copyright (C) 2009-2013 Typesafe Inc. */ package akka.persistence.journal.japi import scala.collection.immutable import scala.collection.JavaConverters._ import akka.persistence.journal.{ SyncWriteJournal ⇒ SSyncWriteJournal } import akka.persistence.PersistentRepr /** * Java API: abstract journal, optimized for synchronous writes. */ abstract class SyncWriteJournal extends AsyncReplay with SSyncWriteJournal with SyncWritePlugin { final def write(persistent: PersistentRepr) = doWrite(persistent) final def writeBatch(persistentBatch: immutable.Seq[PersistentRepr]) = doWriteBatch(persistentBatch.asJava) final def delete(processorId: String, fromSequenceNr: Long, toSequenceNr: Long, permanent: Boolean) = doDelete(processorId, fromSequenceNr, toSequenceNr, permanent) final def confirm(processorId: String, sequenceNr: Long, channelId: String) = doConfirm(processorId, sequenceNr, channelId) }