Packages

final class SideEffect[R, S, A] extends AutoCloseable with Serializable with (A) => Unit

Represents a stateful side effect with resource management. Used by scalaql to implement readers and writers.

R

the resource type

S

the state type

A

side effect input type

Self Type
SideEffect[R, S, A]
Linear Supertypes
(A) => Unit, Serializable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SideEffect
  2. Function1
  3. Serializable
  4. AutoCloseable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. def afterAll(f: (R, S) => Unit): SideEffect.this.type

    Perform side effects before resource released.

    Perform side effects before resource released. The side effect is executed only if all input values was processed without exceptions

    f

    side effect to execute

    returns

    this side effect

  5. def andThen[A](g: (Unit) => A): (A) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  6. def apply(value: A): Unit

    Processes given input value which uses this resource and state.

    Processes given input value which uses this resource and state. apply automatically handles exceptions so that the resource is guaranteed to be released.

    value

    input value

    Definition Classes
    SideEffect → Function1
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def beforeAll(f: (R) => Unit): SideEffect.this.type

    Perform side effects after resource initialization, but before processing any input values.

    Perform side effects after resource initialization, but before processing any input values. The side effect is executed only if the resource was acquired successfully.

    f

    side effect to execute

    returns

    this side effect

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def close(): Unit
    Definition Classes
    SideEffect → AutoCloseable
  11. def compose[A](g: (A) => A): (A) => Unit
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def onExit(f: => Unit): SideEffect.this.type

    Perform side effects after the resource released.

    Perform side effects after the resource released. The side effect is always executed

    f

    side effect to execute

    returns

    this side effect

  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from (A) => Unit

Inherited from Serializable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped