File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
src/main/java/com/swiftmq Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 7
7
8
8
<groupId >com.swiftmq</groupId >
9
9
<artifactId >swiftmq-client</artifactId >
10
- <version >12.5.3 </version >
10
+ <version >12.5.4 </version >
11
11
12
12
<name >SwiftMQ Client</name >
13
13
<description >Client for SwiftMQ Messaging System with JMS, AMQP 1.0 and file transfer over JMS.</description >
Original file line number Diff line number Diff line change @@ -850,7 +850,7 @@ public void removeEntities() {
850
850
*/
851
851
public void removeDynamicEntity (Object dynamicObject ) {
852
852
Entity entity = null ;
853
- lock .readLock ().lock ();
853
+ lock .writeLock ().lock ();
854
854
try {
855
855
for (Iterator iter = entities .entrySet ().iterator (); iter .hasNext (); ) {
856
856
entity = (Entity ) ((Map .Entry ) iter .next ()).getValue ();
@@ -862,7 +862,7 @@ public void removeDynamicEntity(Object dynamicObject) {
862
862
}
863
863
}
864
864
} finally {
865
- lock .readLock ().unlock ();
865
+ lock .writeLock ().unlock ();
866
866
}
867
867
868
868
if (entity != null )
Original file line number Diff line number Diff line change @@ -518,6 +518,15 @@ public int getProducedTotal() {
518
518
public void resetCounters () {
519
519
}
520
520
521
+ /**
522
+ * Returns the average queue latency and resets it
523
+ *
524
+ * @return average queue latency
525
+ */
526
+ public long getAndResetAverageLatency () {
527
+ return (0 );
528
+ }
529
+
521
530
public int getMonitorAlertThreshold () {
522
531
return -1 ;
523
532
}
You can’t perform that action at this time.
0 commit comments