SharedPersistentDataSet

interface SharedPersistentDataSet<T> : PersistentDataCollection<T>

A persistent unordered data set, stored in the cloud, with write privilege from multiple application instances.

Such a data set has one or more remote storage URIs. The entities with write privilege for these URIs provide the content for the data set.

Types

Initializer
Link copied to clipboard
interface Initializer<T> : PersistentDataCollection.Initializer<T>
Initializer for shared persistent data sets.
RemoteSourcesChangedEvent
Link copied to clipboard
data class RemoteSourcesChangedEvent<T>(collection: SharedPersistentDataSet<T>, oldSources: List<RemoteDataSource>)
Information about changed remote sources.

Functions

add
Link copied to clipboard
abstract override fun add(element: T): Boolean
abstract fun add(index: Int, element: T)
addAll
Link copied to clipboard
abstract override fun addAll(elements: Collection<T>): Boolean
abstract fun addAll(index: Int, elements: Collection<T>): Boolean
clear
Link copied to clipboard
abstract override fun clear()
contains
Link copied to clipboard
abstract operator override fun contains(element: T): Boolean
containsAll
Link copied to clipboard
abstract override fun containsAll(elements: Collection<T>): Boolean
forEach
Link copied to clipboard
open fun forEach(p0: Consumer<in T>)
get
Link copied to clipboard
abstract operator fun get(index: Int): T
indexOf
Link copied to clipboard
abstract fun indexOf(element: T): Int
isEmpty
Link copied to clipboard
abstract override fun isEmpty(): Boolean
iterator
Link copied to clipboard
abstract operator override fun iterator(): Iterator<T>
lastIndexOf
Link copied to clipboard
abstract fun lastIndexOf(element: T): Int
listIterator
Link copied to clipboard
abstract override fun listIterator(): MutableListIterator<T>
abstract override fun listIterator(index: Int): MutableListIterator<T>
parallelStream
Link copied to clipboard
open fun parallelStream(): Stream<T>
refresh
Link copied to clipboard
abstract suspend fun refresh()
Make sure the shared date set contains most recent values from all remote data sources.
remove
Link copied to clipboard
abstract override fun remove(element: T): Boolean
removeAll
Link copied to clipboard
abstract override fun removeAll(elements: Collection<T>): Boolean
removeAt
Link copied to clipboard
abstract fun removeAt(index: Int): T
removeIf
Link copied to clipboard
open fun removeIf(p0: Predicate<in T>): Boolean
replaceAll
Link copied to clipboard
open fun replaceAll(p0: UnaryOperator<T>)
retainAll
Link copied to clipboard
abstract override fun retainAll(elements: Collection<T>): Boolean
set
Link copied to clipboard
abstract operator fun set(index: Int, element: T): T
sort
Link copied to clipboard
open fun sort(p0: Comparator<in T>)
spliterator
Link copied to clipboard
open override fun spliterator(): Spliterator<T>
stream
Link copied to clipboard
open fun stream(): Stream<T>
subList
Link copied to clipboard
abstract override fun subList(fromIndex: Int, toIndex: Int): MutableList<T>
toArray
Link copied to clipboard
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>

Properties

changedEvent
Link copied to clipboard
abstract val changedEvent: EventRegistry<DataCollection.ChangedEvent<T>>
Event registry for item changes.
ownURI
Link copied to clipboard
abstract val ownURI: URI
The URI where the data collection is stored in the cloud.
remoteDataSources
Link copied to clipboard
abstract var remoteDataSources: List<RemoteDataSource>
The remote data sources for the shared set.
remoteSourcesUpdatedEvent
Link copied to clipboard
abstract val remoteSourcesUpdatedEvent: EventRegistry<SharedPersistentDataSet.RemoteSourcesChangedEvent<T>>
Event registry for updates of remote data sources.
size
Link copied to clipboard
abstract override val size: Int