Bucket4j 7.6.0 with Hazelcast 5.1.3 #307
-
Hello I'm trying to use Hazelcast with Bucket4j and can't seem to get it working. When I try to put io.github.bucket4j.Bucket type into the map as a value, I'll get an exception "com.hazelcast.nio.serialization.HazelcastSerializationException: There is no suitable serializer for class io.github.bucket4j.local.LockFreeBucket". From the other issues I understand that I have to somehow create custom serializer for the LockFreeBucket class but don't really have an idea how to accomplish that. Instantiating hazelcast like that: And using it like that: `
Would really appreciate some guidelines how to implement custom serializer for LockFreeBucket.class. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello @rasmusaaviste There is direct integration for Hazelcast, you do not have to reimplement it. |
Beta Was this translation helpful? Give feedback.
Hello @rasmusaaviste
There is direct integration for Hazelcast, you do not have to reimplement it.
Try to read documentation and this article.