Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7064017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:46:58+00:00 2026-05-28T04:46:58+00:00

I noticed that Netty has some internal Concurrent HashMap utilities. I’m curious why Netty

  • 0

I noticed that Netty has some internal Concurrent HashMap utilities. I’m curious why Netty doesn’t use the ConcurrentHashMap that’s built into the Java Core. Is the Netty implementation better in some way, or does it have some new functionality? I’m working on a project that needs a Concurrent HashMap and I’m debating whether I should use the netty implementation, but I can’t see any difference in the source code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:46:59+00:00Added an answer on May 28, 2026 at 4:46 am

    ConcurrentHashMap didn’t exist until JSR-166, which was released in Java 5 as the java.util.concurrent package.

    Netty doesn’t include their own ConcurrentHashMap because it’s superior – in fact, it’s certainly just a copy of JSR-166 – it’s so they can run on Java 1.4.

    For your own projects, you should just use java.util.concurrent.ConcurrentHashMap if you can take a dependency on Java 5. And if you can’t, then you should just include it in your product (and change the package name so that it doesn’t conflict with the Java 5 runtime’s included projects.) Any time you can get Doug Lea or Brian Goetz to write your thread-safe code for you, you probably should.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I noticed that my Designer.vb file of one of my forms has a lot
I noticed that the castle windsor fluent component registration interface has the rather confusing
I noticed that some arrays don't have a comma after the last item. I
I noticed that some of my gzip decoding code seemed to be failing to
I noticed that some people write beans with support for the Property Change observer
I noticed that some elements have attributes which are boolean. I wonder why the
I noticed that JVM threads run as processes under Linux for some reasons (correct
I noticed that if some MessageBox appears and you even just have a OK
I noticed that some of the Grails tags for generating input elements ( g:textField
I noticed that Google maps is providing directions in my local language (hungarian) when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.