All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eventstore.j.EsTransactionImpl.scala Maven / Gradle / Ivy

package eventstore.j

import java.util
import scala.concurrent.Future
import eventstore.EventData
import eventstore.core.ScalaCompat.JavaConverters._

class EsTransactionImpl(transaction: eventstore.akka.EsTransaction) extends EsTransaction {
  def getId: Long = transaction.transactionId
  def write(events: util.Collection[EventData]): Future[Unit] = transaction.write(events.asScala.toList)
  def commit(): Future[Unit] = transaction.commit()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy