Package org.activeio

Examples of org.activeio.SynchChannelFactory.openSynchChannel()


     * @return
     * @throws IOException
     */
    protected RequestChannel createClientRequestChannel() throws IOException {
        SynchChannelFactory factory = new SocketSynchChannelFactory();
        PacketAggregatingSynchChannel channel = new PacketAggregatingSynchChannel(factory.openSynchChannel(serverURI));
    ((SocketMetadata)channel.narrow(SocketMetadata.class)).setTcpNoDelay(true);
        return new AsynchChannelToClientRequestChannel(channel);
    }
   
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.