protected class RoofReceiver.RetryTask extends TimerTask
isOpen() and isShut() method, respectively.| Modifier and Type | Field and Description |
|---|---|
private int |
retries
The number of retries.
|
private String |
type
The type of this retry task.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RetryTask(String openclose)
Constructs a new retry-task.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isOpen()
Queries the retry type for open.
|
boolean |
isShut()
Queries the retry type for shut.
|
void |
run()
The run method of the repetitive open/shut task.
|
cancel, scheduledExecutionTimeprivate final String type
private int retries
protected RetryTask(String openclose)
public boolean isOpen()
public boolean isShut()
public void run()
RoofReceiver.KEY_RETRYMAXIMUM. If this number is zero, this task will
never run.RoofReceiver.KEY_RETRYSWITCHES is
compared to the aim value, either RoofReceiver.KEY_RETRYOPENAIM or
RoofReceiver.KEY_RETRYCLOSEAIM. If the current switch state already
reads as this aim value, this timer task is canceled.RoofReceiver.open(boolean)
or RoofReceiver.close(boolean) method is called. No further checks
are made after the call to this method.