Detailed explanation of Reactor thread model for Netty source code analysis
Last article , we analyzed the initialization process of Netty server startup. Today, let's analyze the Reactor thread model in NettyBefore analyzing the source code, let's analyze where EventLoop is used?Connection listening registration of NioServerSocketChannelIO event registration for NioSocketChannelNioServerSocketChannel connection listen ...
Posted by True`Logic on Sun, 21 Nov 2021 20:55:12 -0800
The 12th class of Guji class Redis distributed lock
The 12th class of Guji class Redis distributed lock
Introduction to distributed locks
Within the same JVM, we often use synchronized or Lock to solve the security problem between multiple threads. However, in the distributed architecture, between JVMs, a better locking mechanism is needed to deal with the thread security problem between cross ...
Posted by Megahertza on Sun, 21 Nov 2021 20:23:28 -0800
29 time and date class - cnblog
1. Time and date
1.1 Date class (application)
Overview of Date class Date represents a specific time, accurate to milliseconds Date class constructor
Method nameexplainpublic Date()Allocate a Date object and initialize it so that it represents the time it is allocated, accurate to millisecondspublic Date(long date)Allocates a Date object ...
Posted by glueater on Sun, 21 Nov 2021 18:58:57 -0800
Java must learn tool library to reduce your code by 90%
1. Java's own tools and methods
1.1 the list set is spliced into comma separated strings 1.2 compare whether two strings are equal, ignoring case 1.3 compare whether two objects are equal 1.4 intersection of two List sets 2. apache commons tool class library
2.1 commons Lang, enhanced version of java.lang 2.2 common collections co ...
Posted by kday on Sun, 21 Nov 2021 17:52:03 -0800
Self study notes -- Annotation
annotation
Work for about a year. Before reviewing, I found that many basic knowledge learning was not solid enough. From today on, I will start the weekly self-study task and record it. This note is a self-study note, which can also be read and viewed by everyone.
What is annotation? Java Annotation, also known as Java Annotation, is an Anno ...
Posted by haku87 on Sun, 21 Nov 2021 16:49:26 -0800
[Java] in depth understanding of Comparable interface and Comparator interface | you can use it for sorting
Reference: Java language programming (Advanced) -- written by Mr. Liang Yong and translated by Mr. Dai Kaiyu
Operating environment
Windows10JDK8IDAE
1, Foreword
In the Java language, if you want to judge the size of two variables, you may think of it first
if(a > b){
// ...
}
However, this has great limitations. For example, t ...
Posted by MikeSnead on Sun, 21 Nov 2021 16:37:34 -0800
Basic algorithm set of graph (Java) (shortest path and minimum spanning tree)
Basic algorithm set of graph (shortest path and minimum spanning tree)
1. Shortest path algorithm (DFS Freud dijestra Bellman Ford)
1.1DFS two-point shortest path
In fact, not only depth first search, but also breadth first search can solve such problems. DFS is introduced here. DFS and BFS are not much different in solving the problem of th ...
Posted by scrupul0us on Sun, 21 Nov 2021 16:21:24 -0800
MyBatis (NeiMu): basic support layer (DataSource)
review
In the previous article, we analyzed the type conversion, log adapter, class loading module and resolverutil (used to find qualified classes under the specified package), and also saw some design patterns used, such as adapter pattern and singleton pattern
Next, go to a core of the basic support layer, DataSource
DataSource
In th ...
Posted by darkside_3k on Sun, 21 Nov 2021 15:20:05 -0800
interrupted() and isInterrupted() are still half understood?
preface
When it comes to how to terminate a thread, the method that some readers usually think of immediately must be stop(), but the stop() method is not recommended (it is prohibited in many specifications). The reason is that forcibly terminating a thread will lead to abnormal termination of the program, incorrect release of resources, ...
Posted by Patrick on Sun, 21 Nov 2021 13:41:24 -0800
Using Java 8 Stream to write code, clean and elegant!
The new features of Java 8 are mainly Lambda expressions and streams. When streams and Lambda expressions are used together, the code can become concise and easy to read because of the characteristics of stream declarative processing of data sets1 how to simplify code flowIf there is a requirement, you need to process the dishes queried in the ...
Posted by p2003morris on Sun, 21 Nov 2021 13:24:51 -0800