Use timers to close the mysql connection of DatabaseMan after a period of time,
First I wanted to have one instance of DatabaseMan to share across all classes this is possible but outside the scope of this project. Making multiple instances with timers should however be possible.
Lets make the default timeout 15 seconds.
If you dont like timers since their quite ugly, you could also use a Thread and just let it sleep for 15 seconds this is fine 2. And renember any variable accesed by the thread needs to be an Atomic variable.
If you need help with this or simple dont want to do this just say so.
Use timers to close the mysql connection of DatabaseMan after a period of time, First I wanted to have one instance of DatabaseMan to share across all classes this is possible but outside the scope of this project. Making multiple instances with timers should however be possible.
Lets make the default timeout 15 seconds.
If you dont like timers since their quite ugly, you could also use a Thread and just let it sleep for 15 seconds this is fine 2. And renember any variable accesed by the thread needs to be an Atomic variable.
If you need help with this or simple dont want to do this just say so.