751752753754755756757758759760761
* Cancels any scheduled {@link Future} corresponding to the passed <code>timer</code> * * @param timer */ protected void cancelTimeout(TimerImpl timer) { TimerHandle handle = timer.getTimerHandle(); java.util.TimerTask timerTask = this.scheduledTimerFutures.get(handle); if (timerTask != null) { timerTask.cancel(); }
157158159160161162163164165
/* */ /* */ void addTimer(TimerImpl txtimer) /* */ { /* 313 */ synchronized (this.timers) /* */ { /* 315 */ TimerHandle handle = new TimerHandleImpl(txtimer); /* 316 */ this.timers.put(handle, txtimer); /* */ } /* */ }
131132133134135136137138139140141
throws IllegalStateException, NoSuchObjectLocalException, EJBException { TimerHandle handle = (TimerHandle) instance().call(new Callable() { public Object call() { return timer.getHandle(); }
824825826827828829830831832833834
* Cancels any scheduled {@link java.util.concurrent.Future} corresponding to the passed <code>timer</code> * * @param timer */ protected void cancelTimeout(final TimerImpl timer) { TimerHandle handle = timer.getTimerHandle(); java.util.TimerTask timerTask = this.scheduledTimerFutures.remove(handle); if (timerTask != null) { timerTask.cancel(); }