Hi,
Just create a Serializer for it and add it to your akka config.
Cheers,
V
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/E_iV77EAIRMJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
val bytes = byteString1.toArray
... // send bytes over the wire
val buffer2 = ByteString(bytes)
> --
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/akka-user/-/E_iV77EAIRMJ.
> To post to this group, send email to akka...@googlegroups.com.
> To unsubscribe from this group, send email to
> akka-user+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/akka-user?hl=en.
--
Jonas Bonér
CTO
Typesafe - The software stack for applications that scale
Phone: +46 733 777 123
Twitter: @jboner
No, don't do that manually, create a Serializer.
Sure that is best. I was just asking if he had missed that you could
marshal/demarshal bytestrings to byte arrays
2012/3/3 √iktor Ҡlang <viktor...@gmail.com>:
> No, don't do that manually, create a Serializer.Sure that is best. I was just asking if he had missed that you could
marshal/demarshal bytestrings to byte arrays
Can't you do this?val bytes = byteString1.toArray
> No, don't do that manually, create a Serializer.
Sure that is best. I was just asking if he had missed that you could
marshal/demarshal bytestrings to byte arrays
Hi,
Can't you do this?val bytes = byteString1.toArray
> No, don't do that manually, create a Serializer.
Sure that is best. I was just asking if he had missed that you could
marshal/demarshal bytestrings to byte arrays
I know about ByteString.toArray, but I since Arrays aren't immutable,
I don't want to use them in messages between Actors.
Also, if I use ByteString between local actors, the "toArray" will
result in a copy, which will cost performance and memory.
Naturally I'd the possible remoting to be transparent to the
actors, so I can't use ByteString locally and Array remotely.
Concerning the custom serializer - I was really hoping to avoid
the additional complexity ... :-)
Also, I was planning to use ByteString inside other immutable
message objects (case-class instances). I'd then have to make
custom serializers for all of them, too, right?
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/uyacsGxD4x0J.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
You have to do that anyway, unless you're planning on using Java Serialization for Remoting, which usually is terribly non-performant.
Thanks for the help!
Oli
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/h9GGuSmB4isJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/1W7soqzS59kJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
Open a Pull Request and I'll review it ;-)
Open a Pull Request and I'll review it ;-)
Ok. :-)
Concerning the custom serializers (I guess i really should look into that), uhm
I hesitate to ask, cause you'll probably tell me that I shouldn't do it, but ... ;-)
Do custom serizalizers work with remote typed Actors?
Or, in other words will the serializers specified in the config be used
for the parameters in a MethodCall object?
Or can I always specify a custom serializer even for objects nested into
other objects? Sorry, am a bit new to that stuff.
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/AcF61xQWEPsJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
Open a Pull Request and I'll review it ;-)
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.