Package bbejeck.nio.channels

Examples of bbejeck.nio.channels.AsyncServerSocket



    public static void main(String[] args) throws Exception {
        Injector injector = Guice.createInjector(new SocketModule(), new PlainSocketModule(), new AsyncServerTestModule());
        PlainSocketMessageSender messageSender = injector.getInstance(PlainSocketMessageSender.class);
        final AsyncServerSocket asyncServerSocket = injector.getInstance(AsyncServerSocket.class);
        FutureTask<Long> asyncFutureTask = new FutureTask<>(new Callable<Long>() {
            @Override
            public Long call() throws Exception {
                Stopwatch stopwatch = new Stopwatch();
                stopwatch.start();
                asyncServerSocket.startServer();
                stopwatch.stop();
                return stopwatch.elapsedMillis();
            }
        });
        System.out.println("Starting the AsyncSocketServer Test");
View Full Code Here

TOP

Related Classes of bbejeck.nio.channels.AsyncServerSocket

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.