Hi Kevin,

do you want to serialize your custom Value Classes? In such case add
Serializable trait to the value class, and write your serializer for that.

All the built in scala types that extend AnyVal (Int, Double, Short, ...)
 are serialized and sent through the wire as their java.lang counterparts.



On Thu, Jan 22, 2015 at 11:46 PM, Kevin Esler <[email protected]> wrote:

> I am puzzled by something:  Akka messages can be of type Any, yet
> akka.seriailziation.Serialization.serialize() required an AnyRef as the
> type of the object to be serialized.
>
> So how does Akka serialize a message that is not an AnyRef?
>
> (Reason for asking: I plan to use Akka serialization and would like to
> apply it to values that may not be AnyRef.(
>
>  --
> >>>>>>>>>> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Martynas Mickevičius
Typesafe <http://typesafe.com/> – Reactive
<http://www.reactivemanifesto.org/> Apps on the JVM

-- 
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to