Package com.netflix.discovery
Class TimedSupervisorTask
- java.lang.Object
-
- java.util.TimerTask
-
- com.netflix.discovery.TimedSupervisorTask
-
- All Implemented Interfaces:
java.lang.Runnable
public class TimedSupervisorTask extends java.util.TimerTaskA supervisor task that schedules subtasks while enforce a timeout. Wrapped subtasks must be thread safe.
-
-
Constructor Summary
Constructors Constructor Description TimedSupervisorTask(java.lang.String name, java.util.concurrent.ScheduledExecutorService scheduler, java.util.concurrent.ThreadPoolExecutor executor, int timeout, java.util.concurrent.TimeUnit timeUnit, int expBackOffBound, java.lang.Runnable task)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel()voidrun()
-