Interface ITimeouts
- All Known Implementing Classes:
TimerEngineTimeouts
public interface ITimeouts
The seam through which the upload registry arms its start and idle timeouts, so that the production implementation can be the server's
TimerEngine and a test can be a fake clock that fires on demand.- Author:
- Christopher Mindus
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA scheduled timeout that can be cancelled.Method Summary
Modifier and TypeMethodDescriptionSchedules a task to run once after a delay, on a thread of the implementation's choosing.
Method Details
schedule
Schedules a task to run once after a delay, on a thread of the implementation's choosing.- Parameters:
delayMillis- The delay in milliseconds.description- A short description for diagnostics.task- The task.- Returns:
- The handle.
- Throws:
NullPointerException- If the task is null.