Main.java:15: error: cannot assign a value to final variable count
if (++count <= MAX_RETRY) {
^
Main.java:16: error: method schedule in interface ScheduledExecutorService cannot be applied to given types;
executor.schedule(runnable, 30 * 60 * 1000);
^
required: Callable<V>,long,TimeUnit
found: Runnable,int
reason: cannot infer type-variable(s) V
(actual and formal argument lists differ in length)
where V is a type-variable:
V extends Object declared in method <V>schedule(Callable<V>,long,TimeUnit)
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors