Package org.apache.mina.common

Examples of org.apache.mina.common.IoFutureListener


        WriteFuture future = null;
        try {
            synchronized (handler) {
                if (isSSLStarted(session)) {
                    future = initiateClosure(nextFilter, session);
                    future.addListener(new IoFutureListener() {
                        public void operationComplete(IoFuture future) {
                            nextFilter.filterClose(session);
                        }
                    });
                }
View Full Code Here


        }

        final CountDownLatch latch = new CountDownLatch(sessions.size());

        for (IoSession session : sessions) {
            session.close().addListener(new IoFutureListener() {
                public void operationComplete(IoFuture future) {
                    latch.countDown();
                }
            });
        }
View Full Code Here

        }

        final CountDownLatch latch = new CountDownLatch(sessions.size());

        for (IoSession session : sessions) {
            session.close().addListener(new IoFutureListener() {
                public void operationComplete(IoFuture future) {
                    latch.countDown();
                }
            });
        }
View Full Code Here

        WriteFuture future = null;
        try {
            synchronized (handler) {
                if (isSSLStarted(session)) {
                    future = initiateClosure(nextFilter, session);
                    future.addListener(new IoFutureListener() {
                        public void operationComplete(IoFuture future) {
                            nextFilter.filterClose(session);
                        }
                    });
                }
View Full Code Here

                {
                    nextFilter.filterClose( session );
                }
                else
                {
                    future.addListener( new IoFutureListener()
                    {
                        public void operationComplete( IoFuture future )
                        {
                            nextFilter.filterClose( session );
                        }
View Full Code Here

            sessionsCopy = new IdentityHashSet( sessions );
        }
       
        for( Iterator i = sessionsCopy.iterator(); i.hasNext(); )
        {
            ( ( IoSession ) i.next() ).close().addListener( new IoFutureListener()
            {
                public void operationComplete( IoFuture future )
                {
                    synchronized( lock )
                    {
View Full Code Here

            handler.flushScheduledEvents();
        } finally {
            if (future == null) {
                nextFilter.filterClose(session);
            } else {
                future.addListener(new IoFutureListener() {
                    public void operationComplete(IoFuture future) {
                        nextFilter.filterClose(session);
                    }
                });
            }
View Full Code Here

            handler.flushScheduledEvents();
        } finally {
            if (future == null) {
                nextFilter.filterClose(session);
            } else {
                future.addListener(new IoFutureListener() {
                    public void operationComplete(IoFuture future) {
                        nextFilter.filterClose(session);
                    }
                });
            }
View Full Code Here

        synchronized (sessions) {
            sessionsCopy = new IdentityHashSet(sessions);
        }

        for (Iterator i = sessionsCopy.iterator(); i.hasNext();) {
            ((IoSession) i.next()).close().addListener(new IoFutureListener() {
                public void operationComplete(IoFuture future) {
                    synchronized (lock) {
                        lock.notifyAll();
                    }
                }
View Full Code Here

            {
                nextFilter.filterClose( session );
            }
            else
            {
                future.addListener( new IoFutureListener()
                {
                    public void operationComplete( IoFuture future )
                    {
                        nextFilter.filterClose( session );
                    }
View Full Code Here

TOP

Related Classes of org.apache.mina.common.IoFutureListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.