@OnDestroy
  public void onShutdown()
  {
    _lifecycle.toDestroy();

    ArrayList<TimerListener> listeners = new ArrayList<>(_timerMap.values());

    _timerMap.clear();

    for (TimerListener listener : listeners) {
      listener.close();
    }
  }
@ OnDestroy public void onShutdown ( ) { _lifecycle . toDestroy ( ) ; ArrayList < TimerListener > listeners = new ArrayList < > ( _timerMap . values ( ) ) ; _timerMap . clear ( ) ; for ( TimerListener listener : listeners ) { listener . close ( ) ; } }
/*
@Override
public void getTask(Runnable task, Result<TaskInfo> result)
{
result.complete(null);
}

@Override
public void getTasks(Result<List<TaskInfo>> result)
{
result.complete(null);
}