Author: mheath
Date: Sat Jan 20 13:46:03 2007
New Revision: 498180

URL: http://svn.apache.org/viewvc?view=rev&rev=498180
Log:
Renamed listener methods to completionHandler methods.

Modified:
    mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/AioFuture.java

Modified: 
mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/AioFuture.java
URL: 
http://svn.apache.org/viewvc/mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/AioFuture.java?view=diff&rev=498180&r1=498179&r2=498180
==============================================================================
--- mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/AioFuture.java 
(original)
+++ mina/sandbox/mheath/aioj/trunk/src/main/java/org/apache/aio/AioFuture.java 
Sat Jan 20 13:46:03 2007
@@ -19,17 +19,20 @@
  */
 package org.apache.aio;
 
+import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
 
 public interface AioFuture<V, F extends AioFuture> extends Future<V> {
 
-       void addListener(AioListener<F> listener);
+       void addCompletionHandler(AioCompletionHandler<F> completionHandler);
        
-       void removeListener(AioListener<F> listener);
+       void removeCompletionHandler(AioCompletionHandler<F> completionHandler);
        
        AsynchronousFileChannel getChannel();
        
        Object getAttachment();
        
        void setAttachment(Object attachment);
+
+        public V get() throws InterruptedException, ExecutionException, 
AioCallbackException;
 }


Reply via email to