Java
229 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- 11.8 Containerhistorical
A Tomcat Server can contain multiple Services, each combining Connectors and a Container. These notes organize the architecture by those levels.
- 11.9 Configuration-File Levelhistorical
Using a local Tomcat URL, these notes examine how configuration maps a request to its application and handling path.
- 11.10 LifeCyclehistorical
This note records Tomcat LifeCycle structures in diagrams as a reference for reading container-lifecycle source code.
- 11.11 Architecturehistorical
Tomcat serves as both an HTTP server and a Servlet container, handing requests to application classes. These notes examine its architecture through that division.
- Genericshistorical
Generics parameterize types so the same logic can serve multiple data types. These notes compare them with overloading and Object parameters through sorting requirements.
- Java 8 New Featureshistorical
Java 8 introduced features such as lambda expressions and the Stream API. These notes organize syntax and examples by feature.
- Comparehistorical
Comparator defines comparison rules. These notes use a custom compare method to show how its return value determines element order.
- Estimating Thread Pool Sizehistorical
Thread counts can be estimated from QPS and response time, then checked with load testing. These notes record that estimation and validation process.
- Multithreaded Folder Size Statisticshistorical
Directory-size calculation is split across threads and their results combined, illustrating how to organize parallel tasks.