java architecture road - (netty topic) preliminary understanding of BIO, NIO, AIO
This time, we mainly talk about our IO blocking model. It's just not much, but we must understand that it's very important for us to understand netty later
IO model elaboration
IO model is to use what kind of channel to send and receive data. Java supports three kinds of network programming IO modes: BI ...
Posted by itsjames on Thu, 13 Feb 2020 04:37:40 -0800
Spring-Security-Oauth2 learning notes: Custom token return format
1 Preface
In the previous chapter, we built the authorization authentication server and successfully returned the token. The default format of oauth2 is as follows:
{
"access_token": "86d17c41-4de9-470a-a637-0acb7237099d",
"token_type": "bearer",
"refresh_token": "fb255411-9535-47ad-9f7e-4 ...
Posted by mattcooper on Thu, 13 Feb 2020 01:04:10 -0800
Elegant design pattern - object oriented basis
How to understand object-oriented
Abstract is the prerequisite of encapsulation, inheritance and polymorphism. Reasonable abstraction comes from reasonable analysis and understanding of business topics. Reasonable abstraction should be self consistent and easy to understand about the relationship betwee ...
Posted by realmxofxnoise on Wed, 12 Feb 2020 21:23:25 -0800
Java case: Referee scoring
Title:
In the programming competition, there are six judges to score for the contestants, and the score range is 0-100.
The final scoring rules of players are: (maximum score algorithm, minimum score algorithm, average value algorithm)
Remove the highest score and the lowest score,
The average of the other four scores is the final score of the ...
Posted by juxstapose on Wed, 12 Feb 2020 09:45:22 -0800
Hystrix Circuit Breaker (Hoxton version)
Getting Started with Spring Cloud - Hystrix Circuit Breaker (Hoxton version)
Original
ThinkWon
Last released from December 29-27 15:25:21
Reading 680 Collections
Released from December 29-27 15:25:21
Category Column:
Spring Cloud
Cop ...
Posted by KindredHyperion on Wed, 12 Feb 2020 08:47:12 -0800
[Java] Object class, common API and wrapper class
1, Object class
1. Introduction to object class
*The Object class is the parent class of all classes. If a class does not specify an inherited class, it inherits the Object. Any class directly or indirectly inherits from Object
2. Method of object class
① toString()
* Source code
public String toString() {
return getCla ...
Posted by moleculo on Wed, 12 Feb 2020 05:14:52 -0800
Java lambda expression understanding
brief introduction
As a new feature of java8, lambda expression is oriented to function programming, which makes the code more concise and improves the programming efficiency. As a developer, we should not only learn to use it, but also understand the operation principle behind it
lambda general use ...
Posted by ntohky14 on Tue, 11 Feb 2020 23:45:23 -0800
Diagram the core of kubernetes container profiling mechanism to implement state management
k8s builds a Manager component for the management of container sniffing worker, which is responsible for the management of the underlying sniffing worker, caches the current state of the container, and synchronizes the current state of the external container. Today we will analyze some of its core components
1. Implementation of Core Principles ...
Posted by Niel Roos on Tue, 11 Feb 2020 20:13:04 -0800
Talk about discovery group of artemis
order
This paper focuses on the discovery group of artemis
DiscoveryGroup
activemq-artemis-2.11.0/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/cluster/DiscoveryGroup.java
public final class DiscoveryGroup implements ActiveMQComponent {
private static final Logger logger = Logger.getLogger(DiscoveryGroup.class);
pri ...
Posted by andreas on Tue, 11 Feb 2020 08:51:47 -0800
Front end learning from entry to advanced record 23 (webapi)
Learning objectives
Master the concept of API and Web API
Master the common way of calling API provided by browser
Can develop common page interaction functions through API
Be able to use search engine to solve problems
1. Web API
Introduction to Web API
The concept of API
API (Application Prog ...
Posted by lajocar on Tue, 11 Feb 2020 03:38:03 -0800