GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Netty

Netty

Jump to bottom
Ohad Shai edited this page Oct 2, 2018 · 3 revisions

jasync-sql is using netty for its async communication with the database.
This page will describe the extensions over netty and how the framework is used.

  • Note: Relevant examples here will be in MySQL code but is the same for other drivers.

The entry point for bootstrapping is ConnectionHandler which extends SimpleChannelInboundHandler.
On the connect() method it inits the Channel add all encoders/decoders and itself to handlers list.

In this class, the main method that recieves messages is channelRead0().

Over there messages that arrives are already decoded by FrameDecoder that extends ByteToMessageDecoder.
The actual binary result data is not yet decoded, this is the responsibility of BinaryRowDecoder class.

Clone this wiki locally

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.