public final class TimeoutController
extends java.lang.Object
TimeoutException is thrown.| Modifier and Type | Method and Description |
|---|---|
static void |
execute(java.lang.Runnable runnable,
long timeout)
Executes the specified runnable in a separate daemon thread.
|
public static void execute(java.lang.Runnable runnable,
long timeout)
throws TimeoutException
java.lang.NullPointerException - If the runnable is null.java.lang.IllegalArgumentException - If timeout is less than 1.TimeoutException - If the timeout has elapsed before the runnable
was complete.Copyright ? Technia AB. All Rights Reserved.