[jboss-cvs] JBossAS SVN: r98468 - projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-ejb-api/src/main/javax/ejb.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Dec 22 12:18:49 EST 2009


Author: jaikiran
Date: 2009-12-22 12:18:49 -0500 (Tue, 22 Dec 2009)
New Revision: 98468

Removed:
   projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-ejb-api/src/main/javax/ejb/AsyncResult.java
Log:
Autoversioning commit:  a non-deltaV client made a change to
/projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-ejb-api/src/main/javax/ejb/AsyncResult.java

Deleted: projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-ejb-api/src/main/javax/ejb/AsyncResult.java
===================================================================
--- projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-ejb-api/src/main/javax/ejb/AsyncResult.java	2009-12-22 17:18:42 UTC (rev 98467)
+++ projects/javaee/tags/jboss-javaee-parent-6.0.0-alpha-1/jboss-ejb-api/src/main/javax/ejb/AsyncResult.java	2009-12-22 17:18:49 UTC (rev 98468)
@@ -1,75 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package javax.ejb;
-
-import java.io.Serializable;
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.Future;
-import java.util.concurrent.TimeUnit;
-import java.util.concurrent.TimeoutException;
-
-/**
- * Wraps the result of an asynchronous method call as a Future object 
- * preserving compatability with the business interface signature. The 
- * value specified in the constructor will be retrieved by the container 
- * and made available to the client. 
- * 
- * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
- * @version $Revision$
- * @since 3.1
- */
-public final class AsyncResult<V> implements Future<V>, Serializable
-{
-   private static final long serialVersionUID = 1L;
-
-   private V result;
-   
-   public AsyncResult(V result)
-   {
-      this.result = result;
-   }
-   
-   public boolean cancel(boolean mayInterruptIfRunning)
-   {
-      return false;
-   }
-
-   public V get() throws InterruptedException, ExecutionException
-   {
-      return result;
-   }
-
-   public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
-   {
-      return result;
-   }
-
-   public boolean isCancelled()
-   {
-      return false;
-   }
-
-   public boolean isDone()
-   {
-      return true;
-   }
-}




More information about the jboss-cvs-commits mailing list