Package org.voltdb.network

Examples of org.voltdb.network.Connection


    protected final void checkForDeadConnections(final long now) {
        if (++tickCounter % 1000 != 0) {
            return;
        }
       
        Connection connectionsToCheck[];
        synchronized (connections) {
            connectionsToCheck = connections.toArray(new Connection[connections.size()]);
        } // SYNCH

        ArrayList<Connection> connectionsToRemove = null;
View Full Code Here


                                    if (handler != null) {
                                        socket.configureBlocking(false);
                                        socket.socket().setTcpNoDelay(false);
                                        socket.socket().setKeepAlive(true);
                                       
                                        Connection c = null;
                                        if (!hasDTXNBackPressure) {
                                            c = m_network.registerChannel(socket, handler, SelectionKey.OP_READ);
                                        }
                                        else {
                                            c = m_network.registerChannel(socket, handler, 0);
View Full Code Here

                }
                nc.add(cxn);   
            } // SYNCH
        }
       
        Connection c = m_network.registerChannel(aChannel, cxn);
        cxn.m_hostname = c.getHostname();
        cxn.m_port = port;
        cxn.m_connection = c;
        if (debug.val)
            LOG.debug("From what I can tell, we have a connection: " + cxn);
    }
View Full Code Here

TOP

Related Classes of org.voltdb.network.Connection

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.