Using and improving EvictingQueue in guava

I. Introduction Because some servers in the service are abroad, the network is very unstable, and the http request is very volatile. So we hope to switch to other servers to send http requests through http proxy when the network slows down. What if the definition slows down? If the last N http requests are executed and the execution time exceed ...

Posted by rlalande on Fri, 10 Apr 2020 05:00:36 -0700

Application of MQTT Communication Protocol in Unity II-Implementation of Unity3D C#

The previous article explained the implementation of MQTT protocol in JS by interacting with Unity3D, which is rather rough because it is not particularly proficient with JS.In this article, Unity3D is introduced to implement MQTT protocol communication, and the process is explained in detail.MQTT is an open source communication method of IBM ...

Posted by CSB on Thu, 09 Apr 2020 15:26:03 -0700

JSP Standard Tag Library: JSTL

JSTL (JSP Standard Tag Library), JSP standard tag library, can be embedded in JSP pages to complete business logic and other functions in the form of tags. The purpose of jstl is to replace script code in jsp page as well as el. JSTL standard tag library has five sub libraries, but with the development, its core library is often used at present ...

Posted by feyd on Thu, 09 Apr 2020 10:51:00 -0700

Java obtains physical address according to IP address (through Baidu API interface)

1. Download and import the dependency package of HttpClient: httpmime-4.5.2.jar httpcore-4.4.4.jar httpclient-win-4.5.2.jar httpclient-cache-4.5.2.jar httpclient-4.5.2.jar Baidu online disk link: https://pan.baidu.com/s/1aNBeVvaSm7ePZ3pDH3HeAA  Extraction code: d8tr 2. Create application in Baidu map; (1) Click the application managemen ...

Posted by todd2006 on Tue, 07 Apr 2020 09:37:37 -0700

Reader's Letter|If you have too many Region s in your HBase cluster, take a look at this problem, which you may encounter

Preface: Reader's Letter is a question and answer column opened by the old HBase store, which aims to solve HBase-related problems frequently encountered in the work for more small partners.The store will try its best to help you solve these problems or give you a help. The store hopes this will be a small platform to help each other.If you hav ...

Posted by chatmaster on Mon, 06 Apr 2020 20:35:23 -0700

Do you know four scenarios for Http requests and responses in web projects

[Four cases]: HttpRequest,HttpResponse,HttpServletRequest,HttpServletResponse[What is HTTP?]HyperText Transfer Protocol (HTTP) is a protocol designed to allow clients and servers to communicate smoothly.HTTP works as a request-response protocol between the client and the server.[Two commonly used methods of Http]get - get data from the specifi ...

Posted by only one on Mon, 06 Apr 2020 10:09:36 -0700

The realization principle of window function in spark and hive

Window function is often used in work and often asked in interview. Do you know the implementation principle behind it? Starting from the problems encountered in a business, this paper discusses the data flow principle of window function in hsql, and gives a solution to this problem at the end of the article. ​   1, Business background Fi ...

Posted by moiseszaragoza on Mon, 06 Apr 2020 04:05:56 -0700

concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 3

Today's project, because of the use of spring asynchronous concurrent execution, this error occurred. And occasionally, especially when the project is just started, such problems may occur java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 3 at java.util.concurrent.FutureTask.report(FutureTask.java:122) ...

Posted by blacklotus on Sun, 05 Apr 2020 19:58:19 -0700

Gradle this article is enough for 08 wrapper

Use of wrapper Gradle Wrapper is the recommended usage of gradle. This article will illustrate how to use it with specific examples. Gradle Wrapper The Gradle Wrapper is actually a script, which can be used to download and use the specified version of gradle. It can be downloaded before use as required, effectively avoiding environment consiste ...

Posted by jfontein on Sun, 05 Apr 2020 18:29:11 -0700

Talk about canal's ApplicationConfigMonitor

order This article mainly studies canal's ApplicationConfigMonitor ApplicationConfigMonitor canal-1.1.4/client-adapter/launcher/src/main/java/com/alibaba/otter/canal/adapter/launcher/monitor/ApplicationConfigMonitor.java @Component public class ApplicationConfigMonitor { private static final Logger logger = LoggerFactory.getLogger(Applic ...

Posted by elkidogz on Sat, 04 Apr 2020 22:44:58 -0700