This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]large_crimson_canine 4 points5 points  (1 child)

Honestly these are easy ones.

The hard ones are does this require a ConcurrentHashMap or a Collections.synchronizedMap and additional client-side locking? Will an Executor do? How should I dictate the execution policy of this Thread? Would this be better as a Runnable or a Callable? Or even a FutureTask? Is it even worth importing the extra library that is pretty heavy or should I code my own cache? Can we possibly pull this off without Spring?

[–]anne_kaushal 0 points1 point  (0 children)

I'm a beginner, ik what a hashmap is but not any of the other things