Akka essentials /
4. Typed Actors; What are typed actors?; Defining an actor; Creating actors; An actor with a default constructor; An actor with a non-default constructor; Messaging model; Sending messages; Fire and forget messages; Send and receive messages; Stopping actors; Actor lifecycle monitoring; Lifecycle ca...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Pub.,
2012.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Akka Essentials; Akka Essentials; Credits; About the Author; Acknowledgement; About the Reviewers; www.PacktPub.com; Support files, eBooks, discount offers and more; Why Subscribe?; Free Access for Packt account holders; Preface; The driving force of Akka's Actor Model; What this book covers; What you need for this book; Conventions; Reader feedback; Customer support; Downloading the example code; Errata; Piracy; Questions; 1. Introduction to Akka; Background; Microprocessor evolution; Concurrent systems; Container-based applications; Actor Model; Akka framework; Actor systems.
- What is an actor?State; Behavior; Mailbox; Actor lifecycle; Fault tolerance; Location transparency; Transactors; Akka use cases; Summary; 2. Starting with Akka; Application requirements; Application design; Start development; Prerequisites; Java; Eclipse; Maven; Scala; Akka; Java application; Creating the Akka Maven project; Defining message classes; MapData.java; WordCount.java; ReduceData.java; Result.java; Defining actor classes; MapActor.java; ReduceActor.java; AggregateActor.java; MasterActor.java; Defining the execution class; MapReduceApplication.java; Scala application.
- Defining message classesDefining actor classes; MapActor.scala; ReduceActor.scala; AggregateActor.scala; MasterActor.scala; Defining the execution class; MapReduceApplication.scala; Summary; 3. Actors; Actors; Defining an actor; Creating actors; Actor with default constructor; Actor with non-default constructor; Creating an actor within an actor hierarchy; Messaging model; Sending messages; Fire and forget messages
- tell(); Send and receive messages
- ask(); Receiving messages; Replying to messages; Forwarding messages; Stopping actors; Killing actors; Actor lifecycle monitoring; HotSwap.
- DispatcherPinned dispatcher; Balancing dispatcher; Calling thread dispatcher; Types of mailboxes; Dispatcher usage; Thread pool executor; Fork join executor; Routers; Router usage; Router usage via application.conf; Router usage for distributed actors; Dynamically resizing routers; Custom router; Summary; 6. Supervision and Monitoring; Let It Crash; Actor hierarchy; Supervision; Supervision strategies; One-For-One strategy; All-For-One strategy; Lifecycle monitoring; Fault tolerance; Summary; 7. Software Transactional Memory; Transaction management; What is software transactional memory?