DynamicOwner

class DynamicOwner(onAccessAfterKilled: () => Unit)

DynamicOwner manages DynamicSubscription-s similarly to how Owner manages Subscriptions, except DynamicSubscription can be activated and deactivated repeatedly.

Value parameters:
onAccessAfterKilled

Called if you attempt to use any Owner created by this DynamicOwner after that Owner was killed. It's intended to log and/or throw for reporting / debugging purposes.

class Object
trait Matchable
class Any

Value members

Concrete methods

def activate(): Unit
def deactivate(): Unit
def hasSubscriptions: Boolean
def isActive: Boolean

Exposing this for testing mostly. Outside world should not need to know anything about this owner's subscriptions.

Exposing this for testing mostly. Outside world should not need to know anything about this owner's subscriptions.