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

A question of source code #2194

Open
ZPZP1 opened this issue Apr 19, 2024 · 0 comments
Open

A question of source code #2194

ZPZP1 opened this issue Apr 19, 2024 · 0 comments

Comments

@ZPZP1
Copy link

ZPZP1 commented Apr 19, 2024

Here's why not unify the code format, but instead show a LinkedBlockingQueue for declarations
LinkedBlockingQueue<Runnable> addConnectionQueue = new LinkedBlockingQueue<>(maxPoolSize);
this.addConnectionExecutor = createThreadPoolExecutor(addConnectionQueue, poolName + " connection adder", threadFactory, new CustomDiscardPolicy());
this.closeConnectionExecutor = createThreadPoolExecutor(maxPoolSize, poolName + " connection closer", threadFactory, new ThreadPoolExecutor.CallerRunsPolicy());

@ZPZP1 ZPZP1 changed the title A problem of source code A questionof source code Apr 19, 2024
@ZPZP1 ZPZP1 changed the title A questionof source code A question of source code Apr 19, 2024
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

No branches or pull requests

1 participant