private void stop() { session.endStatement(); session.setCurrentCommand(null); if (trace.isInfoEnabled() && startTime > 0) { long time = System.currentTimeMillis() - startTime; if (time > Constants.SLOW_QUERY_LIMIT_MS) { trace.info("slow query: {0} ms", time); } } }
Object sync = session; synchronized (sync) { session.setCurrentCommand(this); try { while (true) {
Object sync = session; synchronized (sync) { session.setCurrentCommand(this); try { while (true) {