Class

swaydb.data.config.ForceSave

BeforeClean

Related Doc: package ForceSave

Permalink

case class BeforeClean(enableBeforeCopy: Boolean, enableForReadOnlyMode: Boolean, logBenchmark: Boolean) extends MMAPFiles with Product with Serializable

Enables force save before a memory-mapped file are cleaned.

enableBeforeCopy

if true enables BeforeCopy

enableForReadOnlyMode

if true will also apply forceSave to files are they are opened in readOnly mode. This is required for situations where a database instance was closed without properly closing all files. Depending on the operating system, re-opening same database instance might use the same MappedByteBuffer which might not be flushed/force saved. Setting this to true will cover those situations.

logBenchmark

if true logs time taken to forceSave.

Linear Supertypes
Serializable, Serializable, Product, Equals, MMAPFiles, ForceSave, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BeforeClean
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. MMAPFiles
  7. ForceSave
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BeforeClean(enableBeforeCopy: Boolean, enableForReadOnlyMode: Boolean, logBenchmark: Boolean)

    Permalink

    enableBeforeCopy

    if true enables BeforeCopy

    enableForReadOnlyMode

    if true will also apply forceSave to files are they are opened in readOnly mode. This is required for situations where a database instance was closed without properly closing all files. Depending on the operating system, re-opening same database instance might use the same MappedByteBuffer which might not be flushed/force saved. Setting this to true will cover those situations.

    logBenchmark

    if true logs time taken to forceSave.

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val enableBeforeCopy: Boolean

    Permalink

    if true enables BeforeCopy

    if true enables BeforeCopy

    Definition Classes
    BeforeCleanForceSave
  7. val enableForReadOnlyMode: Boolean

    Permalink

    if true will also apply forceSave to files are they are opened in readOnly mode.

    if true will also apply forceSave to files are they are opened in readOnly mode. This is required for situations where a database instance was closed without properly closing all files. Depending on the operating system, re-opening same database instance might use the same MappedByteBuffer which might not be flushed/force saved. Setting this to true will cover those situations.

    Definition Classes
    BeforeCleanForceSave
  8. val enabledBeforeClean: Boolean

    Permalink
    Definition Classes
    BeforeCleanMMAPFiles
  9. val enabledBeforeClose: Boolean

    Permalink
    Definition Classes
    BeforeCleanForceSave
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. val isDisabled: Boolean

    Permalink
    Definition Classes
    BeforeCleanForceSave
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. val logBenchmark: Boolean

    Permalink

    if true logs time taken to forceSave.

    if true logs time taken to forceSave.

    Definition Classes
    BeforeCleanForceSave
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from MMAPFiles

Inherited from ForceSave

Inherited from AnyRef

Inherited from Any

Ungrouped