-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Update creating mechanism. #1
Conversation
test dependency is added.
fixed the issue with class creation.
Added double checked locking. |
|
||
public static IvoryTower getInstance() { | ||
if(instance == null){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lazy initialization of the object introduces concurrent access problem (the access to the singleton object is not thread safe anymore).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh ok, I can avoid that with locking but it's not super important though. :) I'll skip this update.
The double checked locking pattern looks good. Can you also provide simple class diagram image (inventory has items)? I've used https://www.genmymodel.com/ for drawing. Please add pattern description to README.md and link to the class diagram. |
I'll add the pattern description to README.md as soon as I can :) |
Ping? |
Generate UML for delegation pattern
merging changes into fork from origin
#450 Queue-Based-Load-Leveling Blog
#348 - Data Tranfer Object : Add Puml id to README.md.
issue1260 change
Updated Terraform Section
Creation mechanism for IvoryTower is updated.