BaseSubscriptionSet

interface BaseSubscriptionSet : Iterable<Subscription>

Base interface for shared functionality between SubscriptionSet and MutableSubscriptionSet.

Functions

findByName
Link copied to clipboard
abstract fun findByName(name: String): Subscription?

Find the subscription with a given name.

findByQuery
Link copied to clipboard
abstract fun <T> findByQuery(query: <ERROR CLASS><T>): Subscription?

Find the first subscription that contains the given query. It is possible for multiple named subscriptions to contain the same query.

iterator
Link copied to clipboard
abstract operator fun iterator(): Iterator<Subscription>

Properties

errorMessage
Link copied to clipboard
abstract val errorMessage: String?

If state returns SubscriptionSetState.ERROR, this method will return the reason. Errors can be fixed by modifying the subscription accordingly and then call SubscriptionSet.waitForSynchronization.

size
Link copied to clipboard
abstract val size: Int

The number of subscriptions currently in this subscription set.

state
Link copied to clipboard
abstract val state: SubscriptionSetState

The current state of the SubscriptionSet. See SubscriptionSetState for more details about each state.

Inheritors

MutableSubscriptionSet
Link copied to clipboard
SubscriptionSet
Link copied to clipboard