diff --git a/.github/workflows/reademe-contributors.yml b/.github/workflows/reademe-contributors.yml new file mode 100644 index 00000000..d501db52 --- /dev/null +++ b/.github/workflows/reademe-contributors.yml @@ -0,0 +1,40 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +on: + push: + branches: + - develop + +jobs: + contrib-readme-job: + runs-on: ubuntu-latest + name: A job to automate contrib in readme + steps: + - name: Contribute List + uses: akhilmhdh/contributors-readme-action@v2.3.6 + with: + image_size: 50 + columns_per_row: 9 + committer_email: machen@apache.org + committer_username: itmachen + commit_message: 'Update the list of contributors' + env: + GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} diff --git a/.mvn/wrapper/maven-wrapper.jar b/.mvn/wrapper/maven-wrapper.jar new file mode 100644 index 00000000..e69de29b diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties new file mode 100644 index 00000000..c3150437 --- /dev/null +++ b/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1 @@ +distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip diff --git a/README.md b/README.md index 18ecab36..157ac8aa 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,543 @@ Hippo-4J 通过对 JDK 线程池增强,以及扩展三方框架底层线程池 ## 贡献者 -感谢所有为项目作出贡献的开发者 [[Contributors](https://github.com/opengoofy/hippo4j/graphs/contributors)]。如果有意贡献,参考 [good first issue](https://github.com/opengoofy/hippo4j/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)。 +感谢所有为项目作出贡献的开发者。如果有意贡献,参考 [good first issue](https://github.com/opengoofy/hippo4j/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)。 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + itmachen +
+ 小马哥 +
+
+ + shining-stars-lk +
+ Lucky 8 +
+
+ + weihubeats +
+ Weihubeats +
+
+ + pirme +
+ 李金来 +
+
+ + iwangjie +
+ 王杰 +
+
+ + shanjianq +
+ Shanjianq +
+
+ + BigXin0109 +
+ BigXin0109 +
+
+ + xqxyxchy +
+ Null +
+
+ + Gdk666 +
+ Null +
+
+ + maxisvest +
+ Null +
+
+ + zhuanghaozhe +
+ 庄昊哲 +
+
+ + liulinfei121 +
+ Null +
+
+ + road2master +
+ Lijx +
+
+ + pizihao +
+ Pizihao +
+
+ + Atmanuclear +
+ Null +
+
+ + hippo4j +
+ Hippo4j +
+
+ + imyzt +
+ 杨镇涛 +
+
+ + Tliutao +
+ Liutao +
+
+ + monsterxxp +
+ Null +
+
+ + voilaf +
+ Null +
+
+ + gywanghai +
+ 二师兄 +
+
+ + skyemin +
+ Null +
+
+ + Redick01 +
+ Redick Liu +
+
+ + xiaochengxuyuan +
+ Sean Wu +
+
+ + HKMV +
+ Serenity +
+
+ + gewuwo +
+ 格悟沃 +
+
+ + hushtian +
+ Null +
+
+ + jinlingmei +
+ Null +
+
+ + linlinjie +
+ Null +
+
+ + selectbook +
+ Leping Huang +
+
+ + soulmz +
+ Soulzz +
+
+ + tomsun28 +
+ Tomsun28 +
+
+ + backbay2-yzg +
+ 游祖光 +
+
+ + 2EXP +
+ Null +
+
+ + onesimplecoder +
+ Alic +
+
+ + CalebZYC +
+ Null +
+
+ + Hibernate5666 +
+ Cheng Xihong +
+
+ + smartdj +
+ DJ +
+
+ + dmego +
+ Dmego +
+
+ + dousp +
+ Douspeng +
+
+ + hl1248 +
+ Lucas +
+
+ + gentlelynn +
+ Lynn +
+
+ + sanliangitch +
+ WuLang +
+
+ + alexhaoxuan +
+ Alexli +
+
+ + qizhongju +
+ Bug搬运工 +
+
+ + san4j +
+ San4j +
+
+ + zhenyed +
+ Zhenye +
+
+ + dongming0920 +
+ Null +
+
+ + f497196689 +
+ Fengjing +
+
+ + Snailclimb +
+ Guide +
+
+ + hbw1994 +
+ Null +
+
+ + hncboy +
+ Null +
+
+ + stronglong +
+ Itermis +
+
+ + janey668 +
+ Null +
+
+ + jialei-jack +
+ Jialei-jack +
+
+ + klsq94 +
+ Hui Cao +
+
+ + kongyanbo-cx +
+ Null +
+
+ + lishiyu +
+ Null +
+
+ + puppet4 +
+ Tudo +
+
+ + Nhxz +
+ Nhxz +
+
+ + op-lht +
+ Op-lht +
+
+ + wangjie-github +
+ Wangjie +
+
+ + wangyi123456 +
+ Null +
+
+ + Williamren97 +
+ William Ren +
+
+ + wzw8795 +
+ Null +
+
+ + huaxianchao +
+ Null +
+
+ + yangzhiw +
+ Opentanent +
+
+ + yhc777 +
+ Null +
+
+ + zhaiweij +
+ Zhaiweij +
+
+ + zhaojinchao95 +
+ Zhaojinchao +
+
+ + zj1997 +
+ Null +
+
+ + li-xiao-shuang +
+ 李晓双 Li Xiao Shuang +
+
+ + oreoft +
+ 没有气的汽水 +
+
+ + wo883721 +
+ Xinhao +
+
+ + Createsequence +
+ 黄成兴 +
+
+ diff --git a/hippo4j-config/src/test/java/cn/hippo4j/config/toolkit/ConfigExecutorTest.java b/hippo4j-config/src/test/java/cn/hippo4j/config/toolkit/ConfigExecutorTest.java index 4864cd7d..fb8cc27b 100644 --- a/hippo4j-config/src/test/java/cn/hippo4j/config/toolkit/ConfigExecutorTest.java +++ b/hippo4j-config/src/test/java/cn/hippo4j/config/toolkit/ConfigExecutorTest.java @@ -17,8 +17,28 @@ package cn.hippo4j.config.toolkit; +import lombok.extern.slf4j.Slf4j; +import org.junit.Test; +import java.util.concurrent.TimeUnit; + /** * ConfigExecutor Test */ +@Slf4j public class ConfigExecutorTest { + + @Test + public void executeLongPollingTest() { + ConfigExecutor.executeLongPolling(() -> log.info(Thread.currentThread().getName())); + } + + @Test + public void scheduleLongPollingTest() { + ConfigExecutor.scheduleLongPolling(() -> log.info(Thread.currentThread().getName()), 5, TimeUnit.SECONDS); + } + + @Test + public void scheduleLongPollingInitialTest() { + ConfigExecutor.scheduleLongPolling(() -> log.info(Thread.currentThread().getName()), 0, 5, TimeUnit.SECONDS); + } } diff --git a/pom.xml b/pom.xml index 6786d573..51fd6e3f 100644 --- a/pom.xml +++ b/pom.xml @@ -338,7 +338,7 @@ chen.ma machen@apache.org - https://github.com/mabaiwan + https://github.com/itmachen OpenGoofy https://github.com/opengoofy