Configuration class

Issue #43 resolved
Flozza created an issue

Create a thread- and process-safe configuration class that allows for arbitrary values to be queried. If it already knows the value, it will respond with it, otherwise it will query a pipe or something to get that value from the server.

Also it could be possible to attach expiry to objects so that when an expired object is queried, we refresh it before returning. Expiry is an optional feature, not every value needs to use it.

Special care has to be taken on how these configurations are passed to different processes, as they do not share the same state but rather copy an object. The best idea is to probably have different instances on each process but have them act only as a proxy to the real configuration.

Comments (1)

  1. Log in to comment