Days of Pull Source Analysis of RocketMQ Consumer Startup Process and Messages (Nursery Level Analysis)

Source Version 4.8.0 demo code for the official Consumer consumption message DefaultMQPushConsumer consumer = new DefaultMQPushConsumer("please_rename_unique_group_name_4"); // 1. Set NamesrvAddr address consumer.setNamesrvAddr("127.0.0.1:9876"); // 2. Set Consumer Location Optional Value Reference Enumeration Co ...

Posted by Jbert2 on Thu, 25 Nov 2021 10:58:06 -0800

Study notes: packaging

Learning content: packaging class (the examples are int type, and other types are painted according to gourd) Two new features have been added in Java 5, that is, automatic boxing and unpacking. Because basic types are widely used, but Java is an object-oriented language, it provides support for packaging types. There are eight wrapper cl ...

Posted by skyriders on Thu, 25 Nov 2021 10:15:13 -0800

First Line of Code 3rd Edition-3rd Chapter (Notes)

Start with what you can see and explore Activity 1.Activity Activity is a component that can contain an application user interface, mainly for interacting with users. An application can contain zero or more activities. Although an application can have no activities, it is best to have them, since they are meant to interact with the user and t ...

Posted by lostincoding on Thu, 25 Nov 2021 09:52:58 -0800

Performance optimization cases

1. Performance optimization case 1: adjusting heap size to improve service throughput 1.1. Modify tomcat JVM configuration In the production environment, Tomcat does not recommend configuring variables directly in catalina.sh, but in setenv.sh under the same level directory (bin directory) as Catalina. 1.2 initial configuration Writ ...

Posted by skattabrain on Wed, 24 Nov 2021 20:55:20 -0800

Java | teach you to implement a lottery system (Java version)

Source: blog.csdn.net/wang258533488/article/details/78901303 1 Overview In project development, there are often the needs of marketing activities such as lucky draw, such as integral turntable, scratch music, slot machine and so on. In fact, the implementation method of the background is the same. This paper introduces a common implementation ...

Posted by Rizla on Wed, 24 Nov 2021 20:38:29 -0800

[JVM source code analysis] the template interpreter interprets and executes Java bytecode instructions

This article is compiled and published by jiumo (Ma Zhi), chief lecturer of HeapDump performance community Chapter 17 - x86-64 register The system of machine language that can be interpreted by different CPUs is called ISA (Instruction Set Architecture), or instruction set. Intel calls the 32-bit CPU Instruction Set Architecture among x86 seri ...

Posted by sigmon on Wed, 24 Nov 2021 20:03:40 -0800

Java 23 design patterns -- policy pattern (behavior design pattern)

Strategy mode brief introduction The policy pattern is the packaging of the algorithm. It separates the responsibility of using the algorithm from the algorithm itself and delegates it to different objects for management. Policy patterns usually package a series of algorithms into a series of policy classes as subclasses of an abstract policy ...

Posted by nysmenu on Wed, 24 Nov 2021 19:32:33 -0800

Develop a DDD scaffold based on IDEA Plugin

Author: Xiao Fu GeBlog: https://bugstack.cnPrecipitate, share and grow, so that you and others can gain something! 😄Recently, I am interested in expanding various functions in combination with the development capability of IDEA Plugin. Based on this, different cases are used to explore the IDEA Plugin plug-in development technology. I hope thi ...

Posted by Labbat on Wed, 24 Nov 2021 19:29:08 -0800

Logistics system - company information management based on Spring MVC + Spring + MyBatis

Resource download: https://download.csdn.net/download/weixin_44893902/45601768 Exercise point design: fuzzy query, delete, add 1, Language and environment Implementation language: JAVA language.Environment requirements: MyEclipse/Eclipse + Tomcat + MySql.Use technology: Jsp+Servlet+JavaBean or spring MVC + Spring + mybatis. 2, Realiz ...

Posted by Aybabtu on Wed, 24 Nov 2021 18:52:51 -0800

If you don't know how to use the Consumer interface, come to the company and I'll tell you face to face!

background Yes, I'm still working on the XXXX project and interfacing with a third party. The difference is that this time I deal with my own business logic. During the development process, I encountered such a problem: Table structure: A main table a and an associated table B store the status recorded in table B. Scenario: Step 1: create main ...

Posted by billborric on Wed, 24 Nov 2021 18:44:12 -0800