reduce contention around stats on connection - thx for spotting this Hiram!

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@634420 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-03-06 21:26:53 +00:00
parent d56371fd69
commit 4ae43a36b5
1 changed files with 2 additions and 2 deletions

View File

@ -726,7 +726,7 @@ public class TransportConnection implements Service, Connection, Task, CommandVi
}
public void dispatchSync(Command message) {
getStatistics().getEnqueues().increment();
//getStatistics().getEnqueues().increment();
try {
processDispatch(message);
} catch (IOException e) {
@ -736,7 +736,7 @@ public class TransportConnection implements Service, Connection, Task, CommandVi
public void dispatchAsync(Command message) {
if (!stopped.get()) {
getStatistics().getEnqueues().increment();
//getStatistics().getEnqueues().increment();
if (taskRunner == null) {
dispatchSync(message);
} else {