[EventBus] source code analysis of EventBus (detailed process of registering subscribers and registering subscription methods)

preface In the last blog [EventBus] source code analysis of EventBus (registered subscriber | subscription method | search subscription method) The first step of registering a subscriber, searching for a subscriber, is introduced; First, get the current list < subscribermethod > subscribermethUTF-8...

Posted by ThermalSloth on Fri, 24 Sep 2021 05:05:14 +0530

Mybatis core class SqlSessionFactory, I understand after reading it

In the last article< Mybatis source code analysis 2 - instance building >In, coke gave everyone a hand roll on how to add, delete, modify and query a table in the database through Mybatis. So far, the prelude of Mybatis has been played. Next, we will enter the climax. Please move the small bencUTF-8...

Posted by anne on Fri, 24 Sep 2021 05:11:50 +0530

Object common methods [clone and equals]

Object Introduction: The Object class is the parent class of all classes in Java. Any class inherits the Object class by default. Because of all default inheritance, extensions Object is omitted. Note: getClass(),wait(),notify(),notifyAll() and other methods in the Object class are defined as UTF-8...

Posted by Masca on Fri, 24 Sep 2021 05:21:23 +0530

SpringCloud microservice practice 6 - SpringCloud Alibaba

1, Introduction to SpringCloud Alibaba 1. Why does SpringCloud Alibaba appear The spring cloud Netflix project has entered maintenance mode. Spring Cloud Greenwich.RC1 available now Placing the module in the maintenance module means that the Spring Cloud Netflix team will not add new features tUTF-8...

Posted by mr_armageddon on Fri, 24 Sep 2021 05:44:17 +0530

22. Default method of java interface

Interface is a public specification of multiple classes and a reference data type. The most important content is the abstract method. definition The modifier of an abstract method in an interface must have two fixed Keywords: public abstract These two keyword modifiers can be selectively omitteUTF-8...

Posted by seoreferrals on Fri, 24 Sep 2021 16:02:02 +0530

File io Foundation

file Stream: the path of data between the data source (file) and the program (memory) Input stream: the path of data from data source (file) to program (memory) Output stream: the path of data from program (memory) to data source (file) create a file new File(String pathname) / / build a File oUTF-8...

Posted by gwydionwaters on Fri, 24 Sep 2021 16:49:39 +0530

Java object oriented (medium)

Object oriented (medium) Object oriented feature 2: Inheritance 1, Inherited benefits: The redundancy of code is reduced and the reusability of code is improvedConvenient for function expansionIt provides a premise for the use of polymorphism 2, Inherited format: Class A extensions B {} ExtensUTF-8...

Posted by antonello on Fri, 24 Sep 2021 17:30:02 +0530

1078 string compression and decompression (20 points) java problem solution

Title Description: There are many methods of text compression. Here we only consider the simplest one: a continuous segment composed of the same character is represented by this character and the number of characters in the segment. for example ccccc Just use 5c To show. If the characters are nUTF-8...

Posted by PhantomCode on Fri, 24 Sep 2021 17:43:34 +0530

Factory methods and abstract factory patterns

1, Factory method Factory method definition: define an interface for creating objects, and let subclasses decide which class to instantiate. Factory methods delay the instantiation of a class to its subclasses. 1. Structure diagram of factory method mode: The factory method abstracts a factoryUTF-8...

Posted by enygma on Fri, 24 Sep 2021 17:53:58 +0530

Chapter IV Kafka related affairs

1, Offset automatic control Kafka consumer defaults to the offset of unsubscribed topic, that is, the system does not store the record information of the consumer's consumption partition. By default, Kafka consumer's default first consumption strategy: latest (latest) auto.offset.reset=latest aUTF-8...

Posted by craigw9292 on Fri, 24 Sep 2021 17:56:19 +0530