Package org.openqa.selenium.concurrent
Class GuardedRunnable
- java.lang.Object
-
- org.openqa.selenium.concurrent.GuardedRunnable
-
public class GuardedRunnable extends java.lang.Object
Meant to be used together with {#link @ScheduledExecutedService.scheduleAtFixedRate}. When scheduleAtFixedRate is used, and the Runnable fails, the subsequent executions are suspended. Using this class helps to guard the execution and keeps the scheduleAtFixedRate working.
-
-
Constructor Summary
Constructors Constructor Description GuardedRunnable()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Runnable
guard(java.lang.Runnable runnable)
-