directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r407144 - /directory/trunks/mina/core/src/main/java/org/apache/mina/common/IoFuture.java
Date Wed, 17 May 2006 03:59:13 GMT
Author: trustin
Date: Tue May 16 20:59:13 2006
New Revision: 407144

URL: http://svn.apache.org/viewcvs?rev=407144&view=rev
Log:
Resolved issue: DIRMINA-215 (IoFuture.Callback.CLOSE)
* Added IoFuture.Callback.CLOSE

Modified:
    directory/trunks/mina/core/src/main/java/org/apache/mina/common/IoFuture.java

Modified: directory/trunks/mina/core/src/main/java/org/apache/mina/common/IoFuture.java
URL: http://svn.apache.org/viewcvs/directory/trunks/mina/core/src/main/java/org/apache/mina/common/IoFuture.java?rev=407144&r1=407143&r2=407144&view=diff
==============================================================================
--- directory/trunks/mina/core/src/main/java/org/apache/mina/common/IoFuture.java (original)
+++ directory/trunks/mina/core/src/main/java/org/apache/mina/common/IoFuture.java Tue May
16 20:59:13 2006
@@ -34,6 +34,18 @@
     public interface Callback
     {
         /**
+         * A {@link Callback} that closes the {@link IoSession} which is
+         * associated with the specified {@link IoFuture}.
+         */
+        static Callback CLOSE = new Callback()
+        {
+            public void operationComplete( IoFuture future )
+            {
+                future.getSession().close();
+            }
+        };
+        
+        /**
          * Invoked when the operation associated with the {@link IoFuture}
          * has been completed.
          * 



Mime
View raw message