- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
public void cancelTimer(TimerID timerID, boolean detachAC) { // cancel task in scheduler final TimerFacilityTimerTask task = (TimerFacilityTimerTask) scheduler.cancel(timerID); if (detachAC && task != null) { // detach this timer from the ac ActivityContext ac = sleeContainer.getActivityContextFactory() .getActivityContext(task.getTimerFacilityTimerTaskData().getActivityContextHandle()); if (ac != null) { ac.detachTimer(timerID); } } }
protected void remove() { // remove from scheduler super.removeFromScheduler(); // detach this timer from the ac final ActivityContext ac = sleeContainer.getActivityContextFactory() .getActivityContext(data.getActivityContextHandle()); if (ac != null) { ac.detachTimer(data.getTimerID()); } }