PBranch

class PBranch(tree: ITree, idGenerator: IIdGenerator) : IBranch

Constructors

Link copied to clipboard
constructor(tree: ITree, idGenerator: IIdGenerator)

Properties

Link copied to clipboard

Read transaction for this branch.

Link copied to clipboard
open override val transaction: ITransaction

Transaction for this branch.

Link copied to clipboard

Write transaction for this branch.

Functions

Link copied to clipboard
open override fun addListener(l: IBranchListener)

Adds the given branch listener to this branch.

Link copied to clipboard
open override fun canRead(): Boolean

Checks if read operations can be performed on this branch.

Link copied to clipboard
open override fun canWrite(): Boolean

Checks if write operations can be performed on this branch.

Link copied to clipboard
open override 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
open override 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
open override fun getId(): String

Returns the id of this branch.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun removeListener(l: IBranchListener)

Removes the given branch listener from this branch.

Link copied to clipboard
open override 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
open override 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.