Java
229 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- Usagehistorical
Code examples record Netty memory-related usage and provide a practical starting point for reading allocator implementations.
- 2.3 How AnnotationAwareAspectJAutoProxyCreator Creates Proxy Objectshistorical
These notes follow target-bean creation through the automatic proxy creator to examine aspect checks and proxy generation.
- Channel Class Hierarchyhistorical
Channel abstracts network I/O in Netty. These notes examine skeletal implementations and relationships among channel types through the class hierarchy.
- 2.4 How the Target Method Is Executedhistorical
Calls to a proxied target enter an interceptor. These notes trace the interceptor chain and target execution from CglibAopProxy.intercept.
- PooledByteBufAllocatorhistorical
PooledByteBufAllocator obtains a thread cache and its PoolArena, then allocates memory through the arena. These notes trace both stages.
- PoolThreadCachehistorical
PoolThreadCache creates caches for memory regions of different sizes. These notes examine initialization of tiny, small, and normal MemoryRegionCache instances.
- 3.1 Comparison of the Three I/O Modelshistorical
BIO, NIO, and AIO differ in blocking behavior, thread organization, and completion reporting. These notes compare them through server connections and request handling.
- 3.2 Multithreaded Server Implemented with BIOhistorical
Multithreaded Server Implemented with BIO: Traditionally, server-side programming uses BIO.
- AIOhistorical
Java AIO uses asynchronous file and socket channels. These notes examine asynchronous read and write organization through the related classes and examples.
- 3.4 BIOhistorical
BIO reads and writes through input and output streams organized as bytes or characters. These notes introduce blocking I/O through those concepts.