AbstractChannel

abstract class AbstractChannel<T : Any> : Channel<T>, Any

Fields

Name Description
protected id: String
var isClosed: Boolean

Constructors

Name Description
constructor()

Methods

addListener

open fun addListener(listener: Listener<T?>)

Parameters

Name Description
listener: Listener<T?>

ReturnValue

Name Description
Unit

removeListener

open fun removeListener(listener: Listener<T?>)

Parameters

Name Description
listener: Listener<T?>

ReturnValue

Name Description
Unit

clearListeners

open fun clearListeners()

ReturnValue

Name Description
Unit

notify

protected fun notify(value: T?)

Parameters

Name Description
value: T?

ReturnValue

Name Description
Unit

close

open fun close()

ReturnValue

Name Description
Unit