Skip to content

Commit 3065949

Browse files
committed
Support locks in SerializingCache
The plugin now requires Openfire 5.0.0 or later. fixes #112
1 parent f0d2cb9 commit 3065949

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

changelog.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ <h1>
4646
<p><b>5.5.0 Release 2</b> -- tbd</p>
4747
<ul>
4848
<li>[<a href='https://github.com/igniterealtime/openfire-hazelcast-plugin/issues/117'>Issue #117</a>] - Fix cluster node page cannot open</li>
49+
<li>[<a href='https://github.com/igniterealtime/openfire-hazelcast-plugin/issues/112'>Issue #112</a>] - Support locks in SerializingCache</li>
4950
</ul>
5051

5152
<p><b>5.5.0 Release 1</b> -- June 12, 2025</p>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>plugins</artifactId>
66
<groupId>org.igniterealtime.openfire</groupId>
7-
<version>5.0.0-beta</version>
7+
<version>5.0.0</version>
88
</parent>
99
<groupId>org.igniterealtime.openfire.plugins</groupId>
1010
<artifactId>hazelcast</artifactId>

src/java/org/jivesoftware/openfire/plugin/util/cache/ClusteredCacheFactory.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import org.jivesoftware.util.cache.ClusterTask;
4141
import org.jivesoftware.util.cache.ExternalizableUtil;
4242
import org.jivesoftware.util.cache.ExternalizableUtilStrategy;
43+
import org.jivesoftware.util.cache.SerializingCache;
4344
import org.slf4j.Logger;
4445
import org.slf4j.LoggerFactory;
4546

@@ -289,6 +290,9 @@ public void destroyCache(Cache cache) {
289290
if (cache instanceof CacheWrapper) {
290291
cache = ((CacheWrapper) cache).getWrappedCache();
291292
}
293+
if (cache instanceof SerializingCache) {
294+
cache = ((SerializingCache) cache).getDelegate();
295+
}
292296

293297
final ClusteredCache clustered = (ClusteredCache) cache;
294298
clustered.destroy();

0 commit comments

Comments
 (0)