private static class ReindexTask implements Task {
private final long _delay;
private volatile boolean _canceled;
public ReindexTask(TaskCallbackContext context) {
JobConfig jobCfg = context.getJobConfig();
Map<String, String> cfg = jobCfg.getJobCommandConfigMap();
if (cfg == null) {
cfg = Collections.emptyMap();
}
_delay = cfg.containsKey(TIMEOUT_CONFIG) ? Long.parseLong(cfg.get(TIMEOUT_CONFIG)) : 200L;
}