rd-framework / com.jetbrains.rd.framework.base / WireBase

WireBase

abstract class WireBase : IWireWithDelayedDelivery

Constructors

<init>

WireBase(scheduler: <ERROR CLASS>)

Properties

connected

val connected: <ERROR CLASS>

contexts

open val contexts: ProtocolContexts

heartbeatAlive

open val heartbeatAlive: <ERROR CLASS>

heartbeatIntervalMs

open var heartbeatIntervalMs: Long

Ping's interval and not actually detection's timeout. Its value must be the same on both sides of connection.

messageBroker

val messageBroker: MessageBroker

scheduler

val scheduler: <ERROR CLASS>

Functions

advise

open fun advise(lifetime: <ERROR CLASS>, entity: IRdWireable): Unit

Adds a entity for receiving updated values of the object with the given IRdWireable.rdid. The handler is removed when the given lifetime is terminated.

dumpToString

fun dumpToString(): <ERROR CLASS>

send

abstract fun send(id: RdId, writer: (AbstractBuffer) -> Unit): Unit

Sends a data block with the given id and the given writer function that can write the data.

setupContexts

open fun setupContexts(newContexts: ProtocolContexts): Unit

startDeliveringMessages

open fun startDeliveringMessages(): Unit

Extension Properties

serverPort

val IWire.serverPort: Int

Extension Functions

deepClonePolymorphic

fun <T> T.deepClonePolymorphic(): T

Inheritors

Base

abstract class Base : WireBase