public interface IServiceControl
Modifier and Type | Method and Description |
---|---|
void |
initializeService()
Clears out any pre-existing tasks, then initializes the service and
starts tasks as configured.
|
void |
scheduleTask(java.lang.Runnable task,
long delay,
long interval)
Schedules a task for execution by the scheduled thread pool executor.
|
void initializeService() throws java.io.IOException, com.dalsemi.onewire.OneWireException
java.io.IOException
- if configuration fails.com.dalsemi.onewire.OneWireException
- if 1-Wire initialization fails.void scheduleTask(java.lang.Runnable task, long delay, long interval)
task
- to schedule.delay
- in milliseconds before starting task.interval
- in milliseonds between successive scheduled runs.