Deep parsing of xxl-rpc service callers
I. Callers of services
Overview of service invokers:
The invoker package in the remoting package is the service caller, including configuration, bean proxy, load balancing strategy, invocation scheme, etc.
II. Generating Agent
2.1 @XxlRpcReference
Let's first look at the @XxlRpcReference annotation ...
Posted by PascalNouma on Sun, 21 Jul 2019 13:52:56 +0200
New features of Java 8 explore streamlined JRE details
Exploration of New Java 8 Features (VIII) Streamlined JRE Details
https://my.oschina.net/benhaile/blog/211804
Streamlined version of api
This year's interviews with Ali, Netease and the American League, I have made an important discovery --> ___________.
Oracle has released the official version of Java 8 as schedule ...
Posted by gewthen on Thu, 18 Jul 2019 03:43:10 +0200
Configuration of CPPCC Server
Detailed description of server configuration
Recently, the server has just been configured. For the sake of memorandum, this document will explain in detail how to configure the server and record all the problems that arise in the process of configuring the server.
Detailed description of server configuration
Installation Chapter
Ins ...
Posted by The_Walrus on Tue, 16 Jul 2019 22:39:16 +0200
Judging whether two objects are equal in Java
There are many ways to determine whether two objects are equal in Java, which will be explained briefly here.
For basic data types, we can directly use "==" to judge, equality returns true, and vice versa, false.
Comparisons with Reference Types
Suppose that there are two reference objects obj1,obj2, obj1==obj2 to determine wheth ...
Posted by porto88 on Sun, 14 Jul 2019 21:07:04 +0200
Java Synchronization Tool Class--FutureTask
FutureTask can also be used as a latch.(FutureTask implements Future semantics and represents an abstract calculation of generatable results.The calculation represented by FutureTask is done through Callable, which is equivalent to a Runnable that generates results and can be in three states: Waiting to run, Running, and Completed.Execution Com ...
Posted by HughbertD on Wed, 10 Jul 2019 18:12:30 +0200
JDK and cglib dynamic proxy
JAVA Dynamic Agent
proxy pattern
Proxy pattern is a common java design pattern. its characteristic is that proxy class has the same interface with delegate class. proxy class is mainly responsible for pre-processing messages, filtering messages, forwarding messages to delegate class, and post-processing messages for delegate class. There is u ...
Posted by philweb on Mon, 08 Jul 2019 05:46:04 +0200
HashMap source code parsing (JDK 1.8)
HashMap is a combination of arrays and linked lists. As follows:
Paste_Image.png
As you can see from the figure, the bottom of HashMap is an array structure, and each array stores a linked list (a reference to the linked list).
JDK 1.6 implements hashmap in the form of bit bucket (array) +linked list, that is, hash linked list. JDK 1.8 adopts ...
Posted by renj0806 on Mon, 08 Jul 2019 00:55:38 +0200
Android Studio imports Android 4.4.4r1 source code
This article blog address: http://blog.csdn.net/qq1084283172/article/details/70339471
I. Environmental Configuration
1.ubuntu 14.04.5 x64bit
2.jdk-6u45-linux-x64.bin
3.Android Studio 2.3
4.Android 4.4.4r1
Configuration of JDK
According to official google documents https://source.android.com/source/requirements#jdk The hint is that the ...
Posted by macinslaw on Sun, 07 Jul 2019 04:46:44 +0200
Analysis of Concurrent HashMap Principle
Understanding the principles of Concurrent HashMap implementations, it is recommended that you first understand the following HashMap Realization principle.HashMap source code parsing (JDK 1.8)
Why use Concurrent HashMap
Hashtable is thread-safe, but it uses synchronized method to synchronize. Both insert and read data are synchronized. When in ...
Posted by jwk811 on Sun, 07 Jul 2019 04:34:03 +0200
[JDK] JDK Source Analysis-HashMap
Summary
HashMap is one of the most commonly used container classes in Java development and a frequent visitor to interviews.It's actually the preceding " Notes on Data Structure and Algorithms (2) The implementation of Hash List in JDK 1.8 uses the Chain List method to handle hash conflicts, and it is optimized to turn a chain list int ...
Posted by tambo on Mon, 01 Jul 2019 20:06:01 +0200