-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Java] Custom Serializer for fields #1806
Comments
Hi @miladamery , you are right. If you register a serializer for a type, the serialization for fields of this type will use this serializer too |
@chaokunyang |
Hi @miladamery , Fury should pick customized serializer for interface. It should get serializer for concrete type first. If It doesn't exist, it should pick serializer for its inferface. Would you like to contribute this feature? |
@chaokunyang |
Hi. When using Akka toolkit you need to serialize objects for persistence and clustering. Akka gives you the option for providing
your own serializer. The problem is, in akka you have something called
ActorRef
. this class is used for replying to actors that send commands. but thisActorRef
serialization/deserialization is special inAkka
. Here describes how you can serizlize/deserializeActorRef
.Fury provides custom serializers for whole class according to here.
Here is my implementation for serializing
ActorRef
(I appreciate it if some one can say if this is correct)but this
ActorRef
discussed earlier is usually used as a field in commands(which are Java Records) not as a standalone class.Because creating a custom serializer for each Record of my project is not logical Is there a way that Fury support this?
I mean writing a serializer like above and fury understands class field it is serializing and
use appropriate serializer for that field?
The text was updated successfully, but these errors were encountered: