pollingengine
Toggle table of contents
0.1.4
common
Platform filter
common
Switch theme
Search in API
pollingengine
pollingengine
/
in.androidplay.pollingengine.polling.builder
/
PollingConfigBuilder
Polling
Config
Builder
class
PollingConfigBuilder
<
T
>
Members
Constructors
Polling
Config
Builder
Link copied to clipboard
constructor
(
)
Properties
backoff
Link copied to clipboard
var
backoff
:
BackoffPolicy
dispatcher
Link copied to clipboard
var
dispatcher
:
CoroutineDispatcher
fetch
Link copied to clipboard
var
fetch
:
suspend
(
)
->
PollingResult
<
T
>
?
is
Terminal
Success
Link copied to clipboard
var
isTerminalSuccess
:
(
T
)
->
Boolean
?
on
Attempt
Link copied to clipboard
var
onAttempt
:
(
attempt
:
Int
,
delayMs
:
Long
?
)
->
Unit
on
Complete
Link copied to clipboard
var
onComplete
:
(
attempts
:
Int
,
durationMs
:
Long
,
outcome
:
PollingOutcome
<
T
>
)
->
Unit
on
Result
Link copied to clipboard
var
onResult
:
(
attempt
:
Int
,
result
:
PollingResult
<
T
>
)
->
Unit
should
Retry
On
Error
Link copied to clipboard
var
shouldRetryOnError
:
(
Error
?
)
->
Boolean
throwable
Mapper
Link copied to clipboard
var
throwableMapper
:
(
Throwable
)
->
Error
Functions
build
Link copied to clipboard
fun
build
(
)
:
PollingConfig
<
T
>