Some basic concepts of netty

netty Literacy > The purpose of this article is to have a general impression of netty, so that we can have a deep understanding of some basic concepts before netty. brief introduction NIO Communication Framework The number of connections supported by a single point is related to machine memory (about 10W + 1G memory), not to the maximum num ...

Posted by DeathRipple on Sun, 30 Jun 2019 17:47:15 -0700

java design pattern-proxy pattern

Definition of proxy pattern Provide a proxy for other objects to control access to this object Roles in the proxy model Subject abstract topic role: abstract topic class can be abstract class or interface, is the most common definition of business type, without special requirements. RealSubject Specific Theme Roles: Also known as del ...

Posted by kpowning on Sun, 30 Jun 2019 16:15:38 -0700

Java Advancement--Understanding the toString method of Integer classes from source code

The jdk in Java is a treasure house for learning Java programming. The implementation of various methods not only provides insight into the application of design patterns, but also shows how jdk writers optimize their code, which has reached an extreme level, and is very important for us to write our own code.read the fucking source code is a ...

Posted by mikeabe on Sun, 30 Jun 2019 11:12:18 -0700

Understanding different sets in JAVA

Today, after searching the Internet, I found a blog about java collections, which is very well organized. I intentionally copied it to share with you In this lecture: Collection collection Before we talk about collection, let's distinguish three concepts: colection set, used to represent any kind of data structure Collection collection int ...

Posted by AbsolutelyFreeW on Sun, 30 Jun 2019 11:05:01 -0700

[JDK] JDK Source Analysis-Vector

Summary   "Above." JDK Source Analysis-ArrayList This paper mainly analyses the implementation principle of ArrayList. This article analyses another implementation class of the List interface: Vector.   Vector's internal implementation is similar to ArrayList and can also be understood as a "variable array". Its inherita ...

Posted by pieai on Fri, 28 Jun 2019 13:49:41 -0700

Introduction to Functional Programming

What is Functional Programming Functional programming is a programming paradigm that treats computer operations as calculations of functions.The most important basis of a functional programming language is the lambda calculus.Moreover, functions of the lambda operator can accept functions as inputs (parameters) and outputs (return values).Funct ...

Posted by MichaelHe on Fri, 28 Jun 2019 09:35:02 -0700

15 About Friends and Some Small Exercises

About Youyuan and some exercises About Youyuan and some exercises friend function friend class Designing the initial model of an array class Summary My blog collects information from predecessors on the Internet, only to review notes, and good things should be shared with you! If there is any offence, inform me that it will be de ...

Posted by Z3RatuL on Thu, 27 Jun 2019 15:18:00 -0700

Java GUI Layout Exercise for Layout Control

Try to build a login dialog box, which contains two text labels (username, server IP), two text input bars (username, server IP), and a button (login), and layout according to the way you think is appropriate. I compare and try three kinds of layout: GridLayout (grid layout), Border Layout (boundary layout), Flow Layout (flow layout).&nbsp ...

Posted by kamsmartx on Thu, 27 Jun 2019 12:18:00 -0700

Implementation Principle of Spring AOP

AOP (Aspect Orient Programming), commonly known as Aspect Oriented Programming, is a complement to Object Oriented Programming, which is used to process cross-cutting concerns distributed in various modules, such as transaction management, logging, caching and so on. The key of AOP implementation lies in the AOP proxy created automatically by ...

Posted by tmann on Wed, 26 Jun 2019 14:18:35 -0700

The Engine in netty--EventLoop and Its Implementation Source Code Analysis of NioEventLoop-like

EventLoop In introducing the initialization and start-up process of Bootstrap, we touched NioEventLoopGroup several times. To understand this class, we also need to understand netty's thread model. NioEventLoopGroup can be understood as a set of threads, each of which can handle io events generated by multiple channel s independently. Initializ ...

Posted by AbeFroman on Wed, 26 Jun 2019 11:27:06 -0700