Properties

Link copied to clipboard

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

Functions

Link copied to clipboard
abstract fun build(): ComponentGroup
Link copied to clipboard
@CheckReturnValue
abstract fun noTimeout(): EphemeralComponentGroupBuilder

Removes the timeout from this component.

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

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

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

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

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

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