IBranch

interface IBranch

Representation of a branch.

Inheritors

Properties

Link copied to clipboard

Read transaction for this branch.

Link copied to clipboard

Transaction for this branch.

Link copied to clipboard

Write transaction for this branch.

Functions

Link copied to clipboard
abstract fun addListener(l: IBranchListener)

Adds the given branch listener to this branch.

Link copied to clipboard
abstract fun canRead(): Boolean

Checks if read operations can be performed on this branch.

Link copied to clipboard
abstract fun canWrite(): Boolean

Checks if write operations can be performed on this branch.

Link copied to clipboard
abstract fun <T> computeRead(computable: () -> T): T

Performs a computable read operation, which returns a value, on this branch.

Link copied to clipboard
open fun <T> computeReadT(computable: (IReadTransaction) -> T): T

Performs a computable read operation, which returns a value, in a read transaction on this branch.

Link copied to clipboard
abstract fun <T> computeWrite(computable: () -> T): T

Performs a computable write operation, which returns a value, on this branch.

Link copied to clipboard
open fun <T> computeWriteT(computable: (IWriteTransaction) -> T): T

Performs a computable write operation, which returns a value, in a write transaction on this branch.

Link copied to clipboard

Recursively unwraps a branch.

Link copied to clipboard
Link copied to clipboard
abstract fun getId(): String

Returns the id of this branch.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Removes the given branch listener from this branch.

Link copied to clipboard
abstract fun runRead(runnable: () -> Unit)

Performs a read operation on this branch.

Link copied to clipboard
open fun runReadT(f: (IReadTransaction) -> Unit)

Performs a function in a read transaction on this branch.

Link copied to clipboard
abstract fun runWrite(runnable: () -> Unit)

Performs a write operation on this branch.

Link copied to clipboard
open fun runWriteT(f: (IWriteTransaction) -> Unit)

Performs a function in a write transaction on this branch.