Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.jboss.aspects.asynch;
 /*    */ 
 /*    */ import  EDU.oswego.cs.dl.util.concurrent.FutureResult;
 /*    */ import org.jboss.aop.Dispatcher;
 /*    */ import org.jboss.util.id.GUID;
 /*    */ 
 /*    */ public class FutureImpl
 /*    */   implements RemotableFuture
/*    */ {
/*    */   private FutureResult result;
/*    */   private GUID remoteObjectID;
/*    */ 
/*    */   public FutureImpl(FutureResult result)
/*    */   {
/* 44 */     this. = result;
/*    */   }
/*    */ 
/*    */   public void setRemoteObjectID(GUID remoteObjectID)
/*    */   {
/* 49 */     this. = remoteObjectID;
/*    */   }
/*    */ 
/*    */   public void release()
/*    */   {
/* 54 */     if (this. != null)
/*    */     {
/* 56 */       ..unregisterTarget(this.);
/*    */     }
/*    */   }
/*    */ 
/*    */   public Object get() throws InterruptedExceptionInvocationTargetException
/*    */   {
/*    */     try
/*    */     {
/* 64 */       Object rtn = this..get();
/* 65 */       release();
/* 66 */       return rtn;
/*    */     }
/*    */     catch (InvocationTargetException e)
/*    */     {
/* 70 */       release();
/* 71 */     }throw e;
/*    */   }
/*    */ 
/*    */   public Object get(long milliseconds)
/*    */   {
/*    */     try
/*    */     {
/* 79 */       Object rtn = this..timedGet(milliseconds);
/* 80 */       release();
/* 81 */       return rtn;
/*    */     }
/*    */     catch (EDU.oswego.cs.dl.util.concurrent.TimeoutException e)
/*    */     {
/* 85 */       throw new TimeoutException(e);
/*    */     }
/*    */     catch (InvocationTargetException e)
/*    */     {
/* 89 */       release();
/* 90 */     }throw e;
/*    */   }
/*    */ 
/*    */   public boolean isDone()
/*    */   {
/* 96 */     return this..isReady();
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.aspects.asynch.FutureImpl
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X