Package org.activeio.net.NIOAsynchChannelSelectorManager

Examples of org.activeio.net.NIOAsynchChannelSelectorManager.SelectorManagerListener


    public NIOAsynchChannel(SocketChannel socketChannel, boolean useDirect) throws IOException {
        super(socketChannel, useDirect);

        socketChannel.configureBlocking(false);               
        selection = NIOAsynchChannelSelectorManager.register(socketChannel, new SelectorManagerListener(){
            public void onSelect(SocketChannelAsynchChannelSelection selection) {
                String origName = Thread.currentThread().getName();
                if (selection.isReadable())
                try {
                    Thread.currentThread().setName(NIOAsynchChannel.this.toString());
View Full Code Here

TOP

Related Classes of org.activeio.net.NIOAsynchChannelSelectorManager.SelectorManagerListener

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.