c

lightdb.store.split

AsynchronousCachedUpdateHandler

case class AsynchronousCachedUpdateHandler[Doc <: Document[Doc], Model <: DocumentModel[Doc], Storage <: Store[Doc, Model], Searching <: Collection[Doc, Model]](txn: SplitCollectionTransaction[Doc, Model, Storage, Searching], maxCache: Int = 5_000, monitorDelay: FiniteDuration = 250.millis) extends SearchUpdateHandler[Doc, Model, Storage, Searching] with Product with Serializable

Concurrently applies updates in the transaction. Will block until complete during transaction commit.

Note: This will keep all objects in memory while they are being processed. This can lead to out-of-memory errors if updates are going significantly faster than they can be applied.

This can lead to great performance improvements, but unexpectedly long commit delays.

Linear Supertypes
Serializable, Product, Equals, SearchUpdateHandler[Doc, Model, Storage, Searching], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsynchronousCachedUpdateHandler
  2. Serializable
  3. Product
  4. Equals
  5. SearchUpdateHandler
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AsynchronousCachedUpdateHandler(txn: SplitCollectionTransaction[Doc, Model, Storage, Searching], maxCache: Int = 5_000, monitorDelay: FiniteDuration = 250.millis)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. def close: Task[Unit]
  7. def commit: Task[Unit]
  8. def delete[V](index: UniqueIndex[Doc, V], value: V): Task[Unit]
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. def insert(doc: Doc): Task[Unit]
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. val maxCache: Int
  14. val monitorDelay: FiniteDuration
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. def productElementNames: Iterator[String]
    Definition Classes
    Product
  19. def rollback: Task[Unit]
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def truncate: Task[Unit]
  22. val txn: SplitCollectionTransaction[Doc, Model, Storage, Searching]
  23. def upsert(doc: Doc): Task[Unit]
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from SearchUpdateHandler[Doc, Model, Storage, Searching]

Inherited from AnyRef

Inherited from Any

Ungrouped