Skip to Content
Functional Programming in Java
book

Functional Programming in Java

by Pierre-Yves Saumont
January 2017
Intermediate to advanced
472 pages
14h 42m
English
Manning Publications
Content preview from Functional Programming in Java

Chapter 14. Sharing mutable state with actors

This chapter covers

  • Understanding the actor model
  • Using asynchronous messaging
  • Building an actor framework
  • Putting actors to work
  • Optimizing actor performance

In working through this book, you first learned that functional programming often deals with immutable data, which results in programs that are safer, more reliable, and easier to design and scale. Then you learned how mutable state can be handled in a functional way by passing the state along as an argument to functions. You saw several examples of this technique:

  • Passing the generator while generating random numbers allowed for increased testability.
  • Passing the console as a parameter allowed you to send functional output to the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Functional Programming in Java

Functional Programming in Java

Venkat Subramaniam
Learning Java Functional Programming

Learning Java Functional Programming

Richard M Reese, Richard M. Reese

Publisher Resources

ISBN: 9781617292736Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link