de.sciss.lucre.confluent.impl

DurableCacheMapImpl

trait DurableCacheMapImpl[S <: Sys[S], K] extends Durable[S, K, DurablePersistentMap[S, K]] with CacheMapImpl[S, K, DurablePersistentMap[S, K]]

Linear Supertypes
CacheMapImpl[S, K, DurablePersistentMap[S, K]], Durable[S, K, DurablePersistentMap[S, K]], CacheMap[S, K, DurablePersistentMap[S, K]], Cache[S.Tx], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DurableCacheMapImpl
  2. CacheMapImpl
  3. Durable
  4. CacheMap
  5. Cache
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def store: DurablePersistentMap[S, K]

    The persistent map to which the data is flushed or from which it is retrieved when not residing in cache.

    The persistent map to which the data is flushed or from which it is retrieved when not residing in cache.

    Definition Classes
    CacheMap

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. final def cacheContains(key: K, path: Access[S])(implicit tx: S.Tx): Boolean

    Definition Classes
    CacheMapImplCacheMap
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def flushCache(term: Long)(implicit tx: S.Tx): Unit

    This method should be invoked from the implementations flush hook after it has determined the terminal version at which the entries in the cache are written to the persistent store.

    This method should be invoked from the implementations flush hook after it has determined the terminal version at which the entries in the cache are written to the persistent store. If this method is not called, the cache will just vanish and not be written out to the persistent store.

    term

    the new version to append to the paths in the cache (using the PathLike's addTerm method)

    tx

    the current transaction (should be in commit or right-before commit phase)

    Definition Classes
    CacheMapImplCacheMapCache
  13. final def getCacheNonTxn[A](key: K, path: Access[S])(implicit tx: S.Tx, serializer: ImmutableSerializer[A]): Option[A]

    Retrieves a value from the cache _or_ the underlying store (if not found in the cache), where a non-transactional serializer exists.

    Retrieves a value from the cache _or_ the underlying store (if not found in the cache), where a non-transactional serializer exists.

    If no value is found for the current path, this will try to read the most recent entry along the path.

    A

    the type of value stored

    key

    key at which the entry is stored

    path

    access path for the read

    tx

    the current transaction

    serializer

    the serializer to use for the value

    returns

    the most recent value found, or None if a value cannot be found for the given path, neither in the cache nor in the persistent store.

    Definition Classes
    DurableCacheMapImplDurable
  14. final def getCacheOnly[A](key: K, path: Access[S])(implicit tx: S.Tx): Option[A]

    Definition Classes
    CacheMapImplCacheMap
  15. final def getCacheTxn[A](key: K, path: Access[S])(implicit tx: S.Tx, serializer: Serializer[S.Tx, Access[S], A]): Option[A]

    Retrieves a value from the cache _or_ the underlying store (if not found in the cache), where 'only' a transactional serializer exists.

    Retrieves a value from the cache _or_ the underlying store (if not found in the cache), where 'only' a transactional serializer exists.

    If no value is found for the current path, this will try to read the most recent entry along the path.

    A

    the type of value stored

    key

    key at which the entry is stored

    path

    access path for the read

    tx

    the current transaction

    serializer

    the serializer to use for the value

    returns

    the most recent value found, or None if a value cannot be found for the given path, neither in the cache nor in the persistent store.

    Definition Classes
    DurableCacheMapImplDurable
  16. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. final def putCacheNonTxn[A](key: K, path: Access[S], value: A)(implicit tx: S.Tx, serializer: ImmutableSerializer[A]): Unit

    Stores an entry in the cache for which a non-transactional serializer exists.

    Stores an entry in the cache for which a non-transactional serializer exists.

    Note that the caller is responsible for monitoring this call, and if necessary installing a before-commit handler which will call into the abstract method flushCache().

    A

    the type of value stored

    key

    key at which the entry will be stored

    path

    write path when persisting

    value

    value to be stored (entry)

    tx

    the current transaction

    serializer

    the serializer to use for the value

    Definition Classes
    DurableCacheMapImplDurable
  23. final def putCacheOnly(key: K, e: Entry[S, K, DurablePersistentMap[S, K]])(implicit tx: S.Tx): Unit

    Attributes
    protected
    Definition Classes
    CacheMapImpl
  24. final def putCacheTxn[A](key: K, path: Access[S], value: A)(implicit tx: S.Tx, serializer: Serializer[S.Tx, Access[S], A]): Unit

    Stores an entry in the cache for which 'only' a transactional serializer exists.

    Stores an entry in the cache for which 'only' a transactional serializer exists.

    Note that the caller is responsible for monitoring this call, and if necessary installing a before-commit handler which will call into the abstract method flushCache().

    A

    the type of value stored

    key

    key at which the entry will be stored

    path

    write path when persisting

    value

    value to be stored (entry)

    tx

    the current transaction

    serializer

    the serializer to use for the value

    Definition Classes
    DurableCacheMapImplDurable
  25. final def removeCache(key: K, path: Access[S])(implicit tx: S.Tx): Boolean

    Definition Classes
    DurableCacheMapImplCacheMap
  26. final def removeCacheOnly(key: K, path: Access[S])(implicit tx: S.Tx): Boolean

    Removes an entry from the cache, and only the cache.

    Removes an entry from the cache, and only the cache. This will not affect any values also persisted to persistent! If the cache does not contain an entry at the given key, this method simply returns.

    key

    key at which the entry is stored

    tx

    the current transaction

    Definition Classes
    CacheMapImplCacheMap
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CacheMapImpl[S, K, DurablePersistentMap[S, K]]

Inherited from Durable[S, K, DurablePersistentMap[S, K]]

Inherited from CacheMap[S, K, DurablePersistentMap[S, K]]

Inherited from Cache[S.Tx]

Inherited from AnyRef

Inherited from Any

Ungrouped