Package javax.ejb

Examples of javax.ejb.TimerHandle


     * 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();
        }

View Full Code Here


/*     */
/*     */   void addTimer(TimerImpl txtimer)
/*     */   {
/* 313 */     synchronized (this.timers)
/*     */     {
/* 315 */       TimerHandle handle = new TimerHandleImpl(txtimer);
/* 316 */       this.timers.put(handle, txtimer);
/*     */     }
/*     */   }
View Full Code Here

            throws
                IllegalStateException,
                NoSuchObjectLocalException,
                EJBException
        {
            TimerHandle handle = (TimerHandle)
                instance().call(new Callable() {
                     public Object call()
                     {
                         return timer.getHandle();
                     }
View Full Code Here

     * 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();
        }

View Full Code Here

TOP

Related Classes of javax.ejb.TimerHandle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.