Package com.google.dataconnector.protocol

Examples of com.google.dataconnector.protocol.OutputStreamConnector


        inputStreamConnector.setFrameSender(frameSender);
        inputStreamConnector.setConnectorStateCallback(connectionRemoverCallback);
        inputStreamConnector.setName("Inputconnector-" + connectionId);

        // TODO(rayc) Create a pool of connectors instead of making a new instance each time.
        final OutputStreamConnector outputStreamConnector =
            injector.getInstance(OutputStreamConnector.class);
        outputStreamConnector.setConnectionId(connectionId);
        outputStreamConnector.setOutputStream(socket.getOutputStream());
        outputStreamConnector.setConnectorStateCallback(connectionRemoverCallback);
        outputStreamConnector.setName("Outputconnector-" + connectionId);
        outputQueueMap.put(connectionId, outputStreamConnector.getQueue());

        // Start threads
        threadPoolExecutor.execute(inputStreamConnector);
        threadPoolExecutor.execute(outputStreamConnector);
        LOG.debug("active thread count = " + Thread.activeCount());
View Full Code Here

TOP

Related Classes of com.google.dataconnector.protocol.OutputStreamConnector

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.