Design mode - structural design mode

Structural design patterns involve how to assemble classes and objects to achieve a larger structure.Structured class pattern uses inheritance mechanism to combine interfaces or implementations. 1. Agent mode Introduction: Proxy Pattern uses one class to represent the functions of another class, and objects with existing objects to provi ...

Added by kevinritt on Tue, 08 Mar 2022 06:39:47 +0200

[Netty] Netty's thread model and simple usage

Netty's threading model Reactor model Netty's model is based on Reactor mode, so we must know Reactor first. The Reactor model is also called the Dispatch model. When one or more requests are sent to the server at the same time, the server synchronously assigns them to the processing threads of each request. Three roles of Reactor model Ac ...

Added by -Karl- on Tue, 08 Mar 2022 06:29:47 +0200

SpringBoot notes 01 -- Brief principles of spring IOC

SpringBoot notes 01 – Spring IOC 1. IOC 1.1 what is IOC The full name of IOC is Inversion of Control, which is a design concept. In the traditional Java SE code, objects are created through new inside an object, which is the program's initiative to create the objects to rely on. The idea of IOC is to design a container to create these ...

Added by Wabin on Tue, 08 Mar 2022 06:12:49 +0200

SpringCloud learning notes

SpringCloud Source of notes: spring cloud tutorial in Silicon Valley at station B (the first season of Zhouyang) 1. Microservices 1.1 general Microservice architecture is a popular architecture idea in recent years. Microservice architecture is an architecture mode, or architecture style. It advocates dividing a single application into a g ...

Added by iShaun on Tue, 08 Mar 2022 05:59:54 +0200

Java interview selection [Java Foundation Part III]

In the last article, we gave about 35 questions, all of which are basic knowledge. Some children's shoes reflect that the questions are outdated. In fact, they are not. These are the basis of the foundation, but they are also essential. There are still some basic questions in the interview questions. We gradually give different levels of questi ...

Added by zork on Tue, 08 Mar 2022 05:58:54 +0200

JAVA advanced IO stream

IO Use of File class Get function of File class public String getAbsolutePath(): get absolute path public String getPath(): get path public String getName(): get the name public String getParent(): get the directory path of the upper level file. If none, null is returned public long length(): get the length of the file (i.e. the number ...

Added by Pyro on Tue, 08 Mar 2022 05:40:15 +0200

Implementation of Map based on zipper and linear detection hash table

Programmer must read list: https://github.com/silently9527/ProgrammerBooks WeChat official account: beta Java preface In the previous articles, we learned how to implement Map Based on array, linked list, binary tree and red black tree. In this article, we will learn how to implement Map Based on hash table. This method corresponds to Has ...

Added by himnbandit on Tue, 08 Mar 2022 05:40:36 +0200

Use of Flink operator state

1. Operator state classification The scope of action of operator state is limited to operator parallel subtasks. This means that all data processed by the same parallel subtask can access the same state, which is shared for the same subtask. Operator state cannot be accessed by another parallel subtask of the same or different operators. Fl ...

Added by Qlubbie on Tue, 08 Mar 2022 04:59:25 +0200

Summary of some usage examples of Stream in java8 (which will be updated later)

Stream API example If there is a demand, you need to process the dishes queried in the database: Select dishes with less than 400 calories Sort the selected dishes Get the name of the dish after sorting Dish: dish java public class Dish { private String name; private boolean vegetarian; private int calories; private Type t ...

Added by Pinkerbot on Tue, 08 Mar 2022 04:03:00 +0200

Detailed explanation of Android system property set/get

Set system properties As mentioned in the previous article, setting system properties calls SystemProperties set("key", "value"); Just. Then start with this method. framework/base/core/java/android/os/SystemProperties.java public static final int PROP_NAME_MAX = 31; public static final int PROP_VALUE_MAX = ...

Added by simmsy on Tue, 08 Mar 2022 03:37:07 +0200