I am trying to read up on some code to study design patterns and I came across Hysterix. I am reading this class HysterixRequestCache and it does something particular. This class is a static factory class which creates an instance of itself with the method getInstance(), but the thing I am really confused about it that it also creates a concurrenthashmap that caches itself . What design pattern is this and what is the benefit of doing it this way?
Aucun commentaire:
Enregistrer un commentaire