mirror of https://github.com/apache/activemq.git
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:
parent
d56371fd69
commit
4ae43a36b5
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue