Thread pool (detailed): three methods, seven parameters, four rejection strategies

Thread pool (focus) Thread pool: three methods, seven parameters, four rejection strategies Pooling technology: 01: The operation of the program, essence: occupy system resources!Optimize the use of resources!=>Pooling Technology 02: Thread pool, connection pool, memory pool, object pool //... created, destroyed.Very wasteful of resour ...

Posted by rami on Thu, 25 Jun 2020 17:45:01 -0700

java Identify Content Links

Method 1 UseJava.netThe URL class below implements that the URL is a reference to a uniform resource identifier, a URL instance represents a reference to a url, and then the openStream() method in the URL is used. java code: [java] view plain copy import java.io.InputStream; import java.net.URL; public class U ...

Posted by THW on Thu, 25 Jun 2020 09:18:39 -0700

Practical AbbitMQ tips that took 3 days to summarize

Previously read articles about RabbitMQ core messaging patterns are based on Java API s, and recently read the official documentation and found that these core messaging patterns can be implemented through Spring AMQP.This paper summarizes the practical techniques of RabbitMQ, including its installation on Windows and Linux, and the Spring A ...

Posted by shamuntoha on Thu, 25 Jun 2020 09:15:41 -0700

How to use Jdbc and Servlet to operate Mysql database and write Android login server?

How to use Jdbc and Servlet to operate Mysql database and write Android login server? 1. Download and install Tomcat server 2. Open eclipse and choose Java EE mode 3. Configure Servers 1. Click on the blue word in the bottom configuration box (2) Select the corresponding versions of Apache and Tomcat in the server type (3) ...

Posted by itsgood on Thu, 25 Jun 2020 09:13:51 -0700

Concurrent programming -- 7. Singleton mode

The pattern is separated from the language, and the singleton pattern in the design pattern is very important in the concurrency. We should not indulge in the language and architecture, but think about the problem from the design point of view. Technology is the easiest to be replaced. Only by formin ...

Posted by justinjkiss on Thu, 25 Jun 2020 04:15:57 -0700

Basic use of hugegraph

HugeGraphServer Hugegraphserver (hereinafter referred to as HGserver) REST-API It provides a variety of resource access methods, including five common ones: (it is recommended to test in postman) Graph: query vertices and edges (e.g.: IP: 8080 / graphs / hugegraph / graph / vertices) Schema: query ve ...

Posted by darkknightgaury on Thu, 25 Jun 2020 03:58:32 -0700

AOP of Spring core

What is AOP AOP (aspect oriented programming): aspect oriented programming is a complement to traditional object-oriented programming. What do you mean? For example, in the above figure, there are many identical function codes in different methods. Then we can extract these identical function codes an ...

Posted by poring on Thu, 25 Jun 2020 03:36:00 -0700

Understanding the preclean phase of CMS recycler

In "deep understanding of Java virtual machine: advanced features and best practices of JVM (version 2)", the working process of CMS collector is introduced as follows: CMS collector is based on the "mark clear" algorithm. Its operation process is more complex than the previous coll ...

Posted by Muncey on Thu, 25 Jun 2020 03:21:57 -0700

Java implementation of recursion and classic cases (three ways of immortal rabbit)

Java implementation of recursion and classic cases This paper briefly introduces the concept of recursion and points for attention when using recursion, and shares the cases of factorial case (two ways), immortal rabbit case (three ways) and deleting a file with content by recursion; Article cata ...

Posted by jestaji on Thu, 25 Jun 2020 00:19:46 -0700

Design mode - business representative mode

Above (design mode visitor mode): https://blog.csdn.net/qq_16498553/article/details/106934637 catalog background What is the business representative model? Role: advantage: Disadvantages: What can the business representative model do? Business representative model class diagram Source code ...

Posted by rifts on Wed, 24 Jun 2020 19:37:48 -0700