/** * Copyright (C) 2009-2014 Typesafe Inc. */ package akka.persistence.journal.japi import scala.collection.immutable import scala.collection.JavaConverters._ import akka.persistence._ import akka.persistence.journal.{ SyncWriteJournal ⇒ SSyncWriteJournal } /** * Java API: abstract journal, optimized for synchronous writes. */ abstract class SyncWriteJournal extends AsyncRecovery with SSyncWriteJournal with SyncWritePlugin { final def writeMessages(messages: immutable.Seq[PersistentRepr]) = doWriteMessages(messages.asJava) final def writeConfirmations(confirmations: immutable.Seq[PersistentConfirmation]) = doWriteConfirmations(confirmations.asJava) final def deleteMessages(messageIds: immutable.Seq[PersistentId], permanent: Boolean) = doDeleteMessages(messageIds.asJava, permanent) final def deleteMessagesTo(processorId: String, toSequenceNr: Long, permanent: Boolean) = doDeleteMessagesTo(processorId, toSequenceNr, permanent) }