Why Resume, Restart, Stop and Escalate are Product?

48 views
Skip to first unread message

Jiansen

unread,
Jun 7, 2014, 11:24:48 AM6/7/14
to akka...@googlegroups.com

sealed trait Directive extends AnyRef
object Escalate extends Directive with Product with Serializable
object Restart extends Directive with Product with Serializable
object Resume extends Directive with Product with Serializable
object Stop extends Directive with Product with Serializable


sealed trait Directive
case object Resume extends Directive
case object Restart extends Directive
case object Stop extends Directive
case object Escalate extends Directive


Why they are different?  Are not Akka documentation generated by scala doc?  Why Escalate etc. are Product?




Roland Kuhn

unread,
Jun 7, 2014, 12:44:27 PM6/7/14
to akka-user
Hi Jiansen,

these are `case object`s in the source, which is translated by the compiler by adding some super-interfaces and methods (like a pretty toString representation). It would indeed be helpful if scaladoc emitted that instead of these traits.

Regards,

Roland

--
>>>>>>>>>> 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.



Dr. Roland Kuhn
Akka Tech Lead
Typesafe – Reactive apps on the JVM.
twitter: @rolandkuhn


Jiansen He

unread,
Jun 8, 2014, 8:57:09 AM6/8/14
to akka...@googlegroups.com
Thanks Roland.   -- Jiansen


You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/sZnU8zCq36I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages