Package org.neo4j.kernel.guard

Examples of org.neo4j.kernel.guard.Guard


            HttpServletRequest request = (HttpServletRequest) req;
            HttpServletResponse response = (HttpServletResponse) res;

            int timeLimit = getTimeLimit(request);
            if (timeLimit > 0) {
                Guard guard = getGuard(req);
                if (guard != null) {
                    //guard.startTimeout(timeLimit);
                    guard.startOperationsCount(maxOps);
                    try {
                        chain.doFilter(req, res);
                        return;
                    } catch (GuardException e) {
                        LOG.warn("Aborting Request "+dump(request));
                        response.setStatus(SC_REQUEST_TIMEOUT);
                        rollback(req);
                    } finally {
                        guard.stop();
                    }
                }
            }
        }
        chain.doFilter(req, res);
View Full Code Here

TOP

Related Classes of org.neo4j.kernel.guard.Guard

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.