de.sciss.lucre.Durable.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lucre-core_3 Show documentation
Show all versions of lucre-core_3 Show documentation
Extension of Scala-STM, adding optional durability layer, and providing API for confluent and reactive event layers
The newest version!
/*
* Durable.scala
* (Lucre 4)
*
* Copyright (c) 2009-2024 Hanns Holger Rutz. All rights reserved.
*
* This software is published under the GNU Affero General Public License v3+
*
*
* For further information, please contact Hanns Holger Rutz at
* [email protected]
*/
package de.sciss.lucre
import de.sciss.lucre.impl.DurableImpl
object Durable {
def apply(factory: DataStore.Factory, mainName: String = "data"): Durable =
DurableImpl(factory, mainName = mainName)
def apply(mainStore: DataStore): Durable =
DurableImpl(mainStore = mainStore)
trait Txn extends DurableLike.Txn[Txn] {
override final type I = InMemory.Txn
}
}
trait Durable extends DurableLike[Durable.Txn] {
final type I = InMemory.Txn
override def inMemory: InMemory
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy