Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 15683 invoked from network); 17 May 2006 03:59:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 May 2006 03:59:39 -0000 Received: (qmail 95612 invoked by uid 500); 17 May 2006 03:59:34 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 95571 invoked by uid 500); 17 May 2006 03:59:34 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 95560 invoked by uid 99); 17 May 2006 03:59:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 May 2006 20:59:34 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 May 2006 20:59:34 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id ECE381A9835; Tue, 16 May 2006 20:59:13 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@directory.apache.org From: trustin@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060517035913.ECE381A9835@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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. *