class IdlingPolicy


Allows users to control idling idleTimeouts in Espresso.

Summary

Public functions

TimeUnit!

The unit for getIdleTimeout.

Unit
handleTimeout(busyResources: (Mutable)List<String!>!, message: String!)

Invoked when the idle idleTimeout has been exceeded.

Public properties

Boolean
Long

The amount of time the policy allows a resource to be non-idle.

Boolean

When true, timeouts should occur even if a debugger is attached to the VM.

Public functions

getIdleTimeoutUnit

fun getIdleTimeoutUnit(): TimeUnit!

The unit for getIdleTimeout.

handleTimeout

fun handleTimeout(busyResources: (Mutable)List<String!>!, message: String!): Unit

Invoked when the idle idleTimeout has been exceeded.

Parameters
busyResources: (Mutable)List<String!>!

the resources that are not idle.

message: String!

an additional message to include in an exception.

Public properties

disableOnTimeout

val disableOnTimeout: Boolean

idleTimeout

val idleTimeout: Long

The amount of time the policy allows a resource to be non-idle.

timeoutIfDebuggerAttached

val timeoutIfDebuggerAttached: Boolean

When true, timeouts should occur even if a debugger is attached to the VM. When false, they should be suppressed.