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
Link copied to clipboard
abstract val httpClient: OkHttpClient
Link copied to clipboard
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 serializers: List<Serializer>
Link copied to clipboard
abstract val setAllAllowed: Boolean?
Link copied to clipboard
abstract val uri: URI

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>
abstract operator fun get(id: String): ElementEndpoint<TEntity>
Link copied to clipboard
abstract fun getLinks(rel: String): List<Pair<URI, String?>>
Link copied to clipboard
abstract fun getObservable(startIndex: Long = 0): Observable<TEntity>

Provides an observable stream of elements.

Link copied to clipboard
abstract fun link(rel: String): URI
Link copied to clipboard
abstract fun linkTemplate(rel: String, variables: Map<String, Any>): URI
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>)