BufferManager

final
class BufferManager(server: Server) extends ModelImpl[BufferInfo]
Companion
object
trait ModelImpl[BufferInfo]
trait Model[BufferInfo]
class Object
trait Matchable
class Any

Value members

Concrete methods

def bufferInfo(msg: BufferInfo): Unit
def clear(): Unit
def register(buf: Buffer): Unit
def unregister(buf: Buffer): Unit

Inherited methods

def addListener(pf: Listener[BufferInfo]): pf
Inherited from
ModelImpl
final protected
def dispatch(update: BufferInfo): Unit

Synchronously dispatches an update to all currently registered listeners. Non fatal exceptions are caught on a per-listener basis without stopping the dispatch.

Synchronously dispatches an update to all currently registered listeners. Non fatal exceptions are caught on a per-listener basis without stopping the dispatch.

Inherited from
ModelImpl
protected
def releaseListeners(): Unit

Removes all listeners. This is useful when disposing the model, to remove any unnecessary references.

Removes all listeners. This is useful when disposing the model, to remove any unnecessary references.

Inherited from
ModelImpl
def removeListener(pf: Listener[BufferInfo]): Unit
Inherited from
ModelImpl
protected
def startListening(): Unit

Subclasses can override this to issue particular actions when the first listener has been registered

Subclasses can override this to issue particular actions when the first listener has been registered

Inherited from
ModelImpl
protected
def stopListening(): Unit

Subclasses can override this to issue particular actions when the last listener has been unregistered

Subclasses can override this to issue particular actions when the last listener has been unregistered

Inherited from
ModelImpl