Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add api for setting thread pool name #6

Merged
merged 1 commit into from
Oct 23, 2018
Merged

add api for setting thread pool name #6

merged 1 commit into from
Oct 23, 2018

Conversation

javeme
Copy link
Contributor

@javeme javeme commented Oct 19, 2018

Change-Id: I93aeddc6783e6b03d2aa31aa8ca42059e253ba81

@codecov
Copy link

codecov bot commented Oct 19, 2018

Codecov Report

Merging #6 into master will increase coverage by 0.22%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
+ Coverage   22.75%   22.97%   +0.22%     
==========================================
  Files          42       43       +1     
  Lines        1257     1262       +5     
  Branches      227      227              
==========================================
+ Hits          286      290       +4     
- Misses        943      944       +1     
  Partials       28       28
Impacted Files Coverage Δ
.../main/java/com/baidu/hugegraph/event/EventHub.java 84.5% <100%> (ø) ⬆️
...in/java/com/baidu/hugegraph/util/ExecutorUtil.java 80% <80%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 904f426...8478257. Read the comment docs.

ThreadFactory factory = new BasicThreadFactory.Builder()
.namingPattern(name)
.build();
return java.util.concurrent.Executors.newFixedThreadPool(size, factory);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not import java.util.concurrent.Executors

Change-Id: I93aeddc6783e6b03d2aa31aa8ca42059e253ba81
@Linary Linary merged commit 146e4bc into master Oct 23, 2018
@Linary Linary deleted the worker-name branch October 23, 2018 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants