PollUntil

class PollUntil<T>(predicate: PollPredicate<T>, clazz: Class<T>, data: T) : CallDecorator<T> , ResolvedFullDataAfterHook<T> , RequestDataSupplier<T>

PollUntil allows one to set up a DSL context that ensures that a request will poll until such a time that the predicate returns true. Due to how this request type works, the concurrency is set at 1.

Constructors

Link copied to clipboard
constructor(predicate: PollPredicate<T>, clazz: Class<T>, data: T)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun accept(call: Call<T>): Call<T>
open override fun accept(req: HttpRequest, resp: HttpResponse, data: T)
Link copied to clipboard
open suspend override fun getDataForRequest(): RequestData<T>?
Link copied to clipboard
open fun init()