IEphemeralTimeoutableComponent

Properties

Link copied to clipboard
abstract val instance: T
Link copied to clipboard

When true, resets the timeout duration everytime this component is used.

Link copied to clipboard
abstract val timeout: ComponentTimeout?
Link copied to clipboard
abstract val timeoutDuration: Duration?

Functions

Link copied to clipboard
@CheckReturnValue
abstract fun noTimeout(): T

Removes the timeout from this component.

Link copied to clipboard
abstract fun resetTimeoutOnUse(resetTimeoutOnUse: Boolean): T

When true, resets the timeout duration everytime this component is used.

Link copied to clipboard
@CheckReturnValue
open fun timeout(timeout: Duration, handler: Runnable): T
abstract fun timeout(timeout: Duration, handler: suspend () -> Unit): T
@CheckReturnValue
open fun timeout(timeout: Long, timeoutUnit: TimeUnit, handler: Runnable): T

Sets the timeout on this component, invalidating the component on expiration, and running the given timeout handler.

@CheckReturnValue
open fun timeout(timeout: Duration): T
abstract fun timeout(timeout: Duration): T
@CheckReturnValue
open fun timeout(timeout: Long, timeoutUnit: TimeUnit): T

Sets the timeout on this component, invalidating the component on expiration.