StreamingCollectionEndpoint

Endpoint for a collection of TEntitys observable as an append-only stream.

Use GenericStreamingCollectionEndpoint instead if you wish to customize the element endpoint type.

Type Parameters

TEntity

The type of entity the endpoint represents.

Inheritors

Properties

Link copied to clipboard
abstract val createAllAllowed: Boolean?
Link copied to clipboard
abstract val createAllowed: Boolean?
Link copied to clipboard

Interval in which requests are sent to the server. The server may update this interval via the Retry-After response header.

Link copied to clipboard
abstract val readAllAllowed: Boolean?
Link copied to clipboard
abstract val readRangeAllowed: Boolean?
Link copied to clipboard
abstract val setAllAllowed: Boolean?

Functions

Link copied to clipboard
abstract fun create(entity: TEntity): ElementEndpoint<TEntity>?
Link copied to clipboard
abstract fun createAll(entities: Iterable<TEntity>)
Link copied to clipboard
abstract operator fun get(entity: TEntity): ElementEndpoint<TEntity>
Link copied to clipboard
abstract fun getObservable(startIndex: Long = 0): Observable<TEntity>

Provides an observable stream of elements.

Link copied to clipboard
abstract fun readAll(): List<TEntity>
Link copied to clipboard
abstract fun readRange(from: Long?, to: Long?): PartialResponse<TEntity>
Link copied to clipboard
abstract fun setAll(entities: Iterable<TEntity>)