Analysis of Buffer implementation principle of Java NIO three piece suite
At present, many high-performance Java RPC frameworks are implemented based on Netty, and the design principle of Netty is inseparable from Java NIO. ***
1. Buffer inheritance system
As shown in the figure above, for all basic types in Java, there will be a specific Buffer type corresponding to it. Generally, we most often use ByteBuffer. ...
Posted by NTFS on Sun, 28 Nov 2021 06:14:41 -0800
Stack and queue Title Records
Recorded on November 28, 2021
Next up was the last blog post on stacks and queues Stack and queue title record (I)
232. Implement queue with stack
Idea: this topic is a simulation problem to investigate the understanding of stack and queue.
Because the stack is Filo (can only enter and pop up at the top of the stack), and the queue is FIFO ...
Posted by jkraft10 on Sun, 28 Nov 2021 05:27:16 -0800
IO stream and File class
1. IO stream object
IO: input output IO is used to flow data from one device to another
Data files flow from disk to memory, from disk to mobile storage device, and from one computer to another
Everything is bytes: any data file is composed of bytes, and bytes are the smallest storage unit in the computer (Java source code, games, music, mov ...
Posted by bhavin_85 on Sun, 28 Nov 2021 05:24:33 -0800
How to design an awesome API interface
In daily development, there are always various interfaces. Front and rear end data transmission interfaces, third-party service platform interfaces. The front and rear data transmission interfaces of a platform generally communicate in the Intranet environment and use the security framework, so the security can be well protected. This article f ...
Posted by RobbertvanOs on Sun, 28 Nov 2021 05:18:49 -0800
[String class, static keyword, Arrays class, Math class]
Java Foundation
Chapter 8 String class, static keyword, Arrays class, Math class (most of the commonly used methods are listed in the article. For details of other methods, please refer to the API document)
String class
Overview of String class
summary
The java.lang.String class represents a string. All string literals (such as &qu ...
Posted by squariegoes on Sun, 28 Nov 2021 03:55:48 -0800
Classification experiment based on communication data
Learning objectives:
1. Understand and master the logistic regression classification method; 2. Master the effect evaluation of logistic regression model; 3. Master the application scenarios of decision tree classification.
Learning content:
1. This experiment is the analysis and prediction of telecom customer churn rate. 2. Analy ...
Posted by LowEndTheory on Sun, 28 Nov 2021 03:36:02 -0800
Top ten classic sorting: merge sorting | bucket sorting
Merge sort
Merge sort principle
What is merge sort? To merge and sort, we must first understand what is merging: merging two ordered sequences into one ordered sequence, which we call "merging".
Idea: merge sort is to sort the sequence of numbers by using the idea of merge. According to the specific implementation, merge sortin ...
Posted by dlcmpls on Sun, 28 Nov 2021 03:08:06 -0800
Java policy pattern of Java proxy pattern
Java policy pattern
In strategy pattern, the behavior of a class or its algorithm can be changed at run time. This type of design pattern belongs to behavioral pattern.
In the policy pattern, we create objects representing various policies and a context object whose behavior changes with the change of policy objects. The policy object changes ...
Posted by HaXoRL33T on Sun, 28 Nov 2021 02:48:18 -0800
Ajax&JSON in the second phase of java
1, Ajax
(1) Introduction to Ajax
1. Introduction to Ajax
Ajax is a web development technology to create interactive web applications. Is a technology for creating fast dynamic web pages.
Ajax is ...
Posted by Dysan on Sun, 28 Nov 2021 01:18:13 -0800
[Spring Boot quick start] 20. Spring Boot implements logging based on AOP annotations
preface
in many background management systems, there are clear permissions and role control, and of course, there is no lack of operation log records. This article will develop a logging function based on the AOP feature of Spring. Let's record the whole development project
Quick start
using the AOP feature of Spring, fir ...
Posted by alsal on Sat, 27 Nov 2021 22:28:09 -0800