Copyright
Brief Table of Contents
Table of Contents
Foreword
Preface
Acknowledgments
About this Book
About the Cover Illustration
1. Netty concepts and architecture
Chapter 1. Netty—asynchronous and event-driven
1.1. Networking in Java
1.1.1. Java NIO
1.1.2. Selectors
1.2. Introducing Netty
1.2.1. Who uses Netty?
1.2.2. Asynchronous and event-driven
1.3. Netty’s core components
1.3.1. Channels
1.3.2. Callbacks
1.3.3. Futures
1.3.4. Events and handlers
1.3.5. Putting it all together
1.4. Summary
Chapter 2. Your first Netty application
2.1. Setting up the development environment
2.1.1. Obtaining and installing the Java Development Kit
2.1.2. Downloading and installing an IDE
2.1.3. Downloading and installing Apache Maven
2.1.4. Configuring the toolset
2.2. Netty client/server overview
2.3. Writing the Echo server
2.3.1. ChannelHandlers and business logic
2.3.2. Bootstrapping the server
2.4. Writing an Echo client
2.4.1. Implementing the client logic with ChannelHandlers
2.4.2. Bootstrapping the client
2.5. Building and running the Echo server and client
2.5.1. Running the build
2.5.2. Running the Echo server and client
2.6. Summary
Chapter 3. Netty components and design
3.1. Channel, EventLoop, and ChannelFuture
3.1.1. Interface Channel
3.1.2. Interface EventLoop
3.1.3. Interface ChannelFuture
3.2. ChannelHandler and ChannelPipeline
3.2.1. Interface ChannelHandler