Skip to content

Commit

Permalink
Merge branch 'release/12.5.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
iitsoftware committed Mar 4, 2023
2 parents 809ea47 + eb8e282 commit 3ff5c0d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>com.swiftmq</groupId>
<artifactId>swiftmq-client</artifactId>
<version>12.5.3</version>
<version>12.5.4</version>

<name>SwiftMQ Client</name>
<description>Client for SwiftMQ Messaging System with JMS, AMQP 1.0 and file transfer over JMS.</description>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/swiftmq/mgmt/Entity.java
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ public void removeEntities() {
*/
public void removeDynamicEntity(Object dynamicObject) {
Entity entity = null;
lock.readLock().lock();
lock.writeLock().lock();
try {
for (Iterator iter = entities.entrySet().iterator(); iter.hasNext(); ) {
entity = (Entity) ((Map.Entry) iter.next()).getValue();
Expand All @@ -862,7 +862,7 @@ public void removeDynamicEntity(Object dynamicObject) {
}
}
} finally {
lock.readLock().unlock();
lock.writeLock().unlock();
}

if (entity != null)
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/com/swiftmq/swiftlet/queue/AbstractQueue.java
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,15 @@ public int getProducedTotal() {
public void resetCounters() {
}

/**
* Returns the average queue latency and resets it
*
* @return average queue latency
*/
public long getAndResetAverageLatency() {
return (0);
}

public int getMonitorAlertThreshold() {
return -1;
}
Expand Down

0 comments on commit 3ff5c0d

Please sign in to comment.