Processor

interface Processor(source)

Base interface for implementations that process TorEvent.

Functions

Link copied to clipboard
abstract fun clearObservers()

Remove all non-static Observer that are currently registered.

Link copied to clipboard
abstract fun subscribe(observer: TorEvent.Observer)

Add a single Observer.

abstract fun subscribe(vararg observers: TorEvent.Observer)

Add multiple Observer.

Link copied to clipboard
abstract fun unsubscribe(observer: TorEvent.Observer)

Remove a single Observer.

abstract fun unsubscribe(vararg observers: TorEvent.Observer)

Remove multiple Observer.

Link copied to clipboard
abstract fun unsubscribeAll(event: TorEvent)

Remove all Observer of a single TorEvent.

abstract fun unsubscribeAll(vararg events: TorEvent)

Remove all Observer of multiple TorEvent.

abstract fun unsubscribeAll(tag: String)

Remove all Observer with the given tag.