| Constructor and Description | 
|---|
ActionTimeout(Action action,
             long timeout)
Creates a new ActionTimeout. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
run()
Waits for the timeout to expire, then invokes the Action's stop method. 
 | 
void | 
start()
Starts this ActionTimeout's timer. 
 | 
void | 
stop()
Stops this ActionTimeout's timer, disabling the timeout. 
 | 
public ActionTimeout(Action action, long timeout)
action - the Action to stop when the timeout period has elapsed.timeout - the timeout period, in milliseconds.Copyright © 2025. All rights reserved.