ConcurrentLinkedHashMap?

546 views
Skip to first unread message

Jason S

unread,
Feb 9, 2012, 11:23:57 AM2/9/12
to guava-...@googlegroups.com
Is there a ConcurrentLinkedHashMap available in guava via MapMaker or some other class? If not, is there an easy way to create one? I don't see a class called ConcurrentLinkedHashMap, was hoping to.

Charles Fry

unread,
Feb 9, 2012, 11:32:39 AM2/9/12
to Jason S, guava-...@googlegroups.com
ConcurrentLinkedHashMap is in:


The closest thing in Guava is CacheBuilder.

Charles

On Thu, Feb 9, 2012 at 11:23, Jason S <jms...@gmail.com> wrote:
Is there a ConcurrentLinkedHashMap available in guava via MapMaker or some other class? If not, is there an easy way to create one? I don't see a class called ConcurrentLinkedHashMap, was hoping to.

Kevin Bourrillion

unread,
Feb 9, 2012, 11:33:01 AM2/9/12
to Jason S, guava-...@googlegroups.com
On Thu, Feb 9, 2012 at 8:23 AM, Jason S <jms...@gmail.com> wrote:

Is there a ConcurrentLinkedHashMap available in guava via MapMaker or some other class?

No.

 
If not, is there an easy way to create one?

Not even close. :-)


I don't see a class called ConcurrentLinkedHashMap, was hoping to.

I suspect that finding a class with that name is not really your objective, and that in reality there is some programmatic goal you are actually trying to accomplish.  If you want help with that, please describe what it is you're trying to do.  You'll get the best and fastest help by posting this to stackoverflow with the guava tag (we and many others read it).


--
Kevin Bourrillion @ Google

Kevin Bourrillion

unread,
Feb 9, 2012, 11:38:06 AM2/9/12
to Charles Fry, Jason S, guava-...@googlegroups.com
On Thu, Feb 9, 2012 at 8:32 AM, Charles Fry <f...@google.com> wrote:

ConcurrentLinkedHashMap is in:


It has the class name he's asking for, but it's anyone's guess what behavior he wants; e.g. it doesn't iterate in insertion order the way a LinkedHashMap does by default.


Jason S

unread,
Feb 9, 2012, 11:41:04 AM2/9/12
to guava-...@googlegroups.com
You'll get the best and fastest help by posting this to stackoverflow with the guava tag (we and many others read it).

Will do. I flipped a mental coin and posted here first.
Reply all
Reply to author
Forward
0 new messages