PollingEndpointImpl
constructor(referrer: Endpoint, relativeUri: URI, entityType: Class<TEntity>, endCondition: (TEntity) -> Boolean? = null)
Parameters
referrer
The endpoint used to navigate to this one.
relativeUri
The URI of this endpoint relative to the referrer's.
entityType
The type of entity the endpoint represents.
endCondition
A check to determine whether the entity has reached its final state and no further polling is required.
Type Parameters
TEntity
The type of entity the endpoint represents.
constructor(referrer: Endpoint, relativeUri: String, entityType: Class<TEntity>, endCondition: (TEntity) -> Boolean? = null)
Creates a new polling endpoint.
Parameters
referrer
The endpoint used to navigate to this one.
relativeUri
The URI of this endpoint relative to the referrer's. Add a ./ prefix here to imply a trailing slash on referrer's URI.
entityType
The type of entity the endpoint represents.
endCondition
A check to determine whether the entity has reached its final state and no further polling is required.