Examples of SDBCPool


Examples of com.art.anette.server.database.SDBCPool

                    " went offline.");

            // No shutdown the connection. This may inform other clients about our change in online state. As such we
            // need to be sure that we got full control. close() for sure isn't called with the pool-lock acquired.
            {
                final SDBCPool pool = SDBCPool.getInstance();
                final Object lock = pool.getLock();
                synchronized (lock) {
                    pool.freezeAll();
                    try {
                        sdbc.shutdown();
                        SDBCPool.getInstance().unregister(sdbc);
                    } finally {
                        pool.thawAll();
                    }
                }
            }
        }
        NetworkControl.getInstance().unregisterClient(this);
View Full Code Here

Examples of com.art.anette.server.database.SDBCPool

     *
     * @param request Das zu verarbeitetende Objekt.
     * @throws IOException Falls beim Verarbeiten ein Fehler auftritt.
     */
    private synchronized void processObject(Request request) throws IOException {
        final SDBCPool pool = SDBCPool.getInstance();
        final Object lock = pool.getLock();
        synchronized (lock) {
            pool.freezeAll();
            try {
                processObject0(request);
            } finally {
                pool.thawAll();
            }
        }
    }
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.