IDeferrableITextBuffer

interface IDeferrableITextBuffer : ITextBuffer

for completion purpose

Functions

Link copied to clipboard
abstract fun advise(lifetime: Lifetime, handler: (RdTextChange) -> Unit)
Link copied to clipboard
abstract fun assertState(allText: String)

Asserts that both sides have the same document text if buffer versions are same.

Link copied to clipboard
abstract fun fire(value: RdTextChange)
Link copied to clipboard
abstract fun flush()

Sends all postponed events to protocol.

Link copied to clipboard
abstract fun queue(newChange: RdTextChange)

Calls fire method, but postpones sending events to protocol until flush is called.

Link copied to clipboard
abstract fun reset(text: String)

Resets TextBuffer state and sends event to replace a whole text on the opposite side. Used fot setting initial text too.

Properties

Link copied to clipboard
abstract val bufferVersion: TextBufferVersion

Current buffer version that consists from a pair of master and slave timestamps.

Link copied to clipboard
abstract val changing: Boolean
Link copied to clipboard
abstract val historyChanged: ISource<RdTextChange>

Source of events that have been applied upon a document state ever.

Link copied to clipboard
abstract val isMaster: Boolean

Indicates if this side has higher priority level than other.

Link copied to clipboard
abstract val isQueueEmpty: Boolean

Inheritors

Link copied to clipboard