Description
Discussed in #132
Originally posted by tomazfernandes September 20, 2022
Hey there! Congrats on the first Milestone!
I have a couple of quick suggestions for your consideration.
In these and a couple of other parts you lookup the ContainerProperties
when the Container is already running. Unless I'm missing something, ContainerProperties
is a mutable object and users can change those settings at will.
Is a user changing these settings with the Container running a feature? Otherwise, isn't it better to maybe extract these properties to final
fields in the inner Listener
class when the container starts and look that up instead?
Another part I'm not too sure about is this one:
You seem to be using a concurrency structure in a non concurrency-safe way. If this isn't concurrent code, why not use a plain boolean? Or, if it is concurrent code, isn't the compareAndSet
method a better choice, instead of using separate get
and set
calls?
WDYT, makes sense, or maybe I'm missing something? Thanks!