rd-framework / com.jetbrains.rd.framework / SocketWire / Base

Base

abstract class Base : WireBase

Types

PkgInputStream

inner class PkgInputStream : InputStream

Constructors

<init>

Base(id: String, lifetime: <ERROR CLASS>, scheduler: <ERROR CLASS>)

Properties

acktor

val acktor: ExecutorService

id

val id: String

lock

val lock: Object

logger

val logger: <ERROR CLASS>

sendBuffer

val sendBuffer: <ERROR CLASS>

socketProvider

val socketProvider: <ERROR CLASS>

Inherited 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

send

open 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.

Inherited 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>

setupContexts

open fun setupContexts(newContexts: ProtocolContexts): Unit

startDeliveringMessages

open fun startDeliveringMessages(): Unit

Inheritors

Client

class Client : SocketWire.Base

Server

class Server : SocketWire.Base