I have just two questions concerning threads:
I have read somewhere to ensure that an action will be executed within the event-dispatching thread is to include it within:
I don't know if this is necessary, but otherwise I'm afraid of a freezed GUI if I don�t ensure the integrity of the event-dispatching thread
In my Server-Class I have implemented a second thread within it's run-method its written (I have to admit I have copied Max' idea :
the refresh-method of Data looks like:
So I notify my WeakHashMap to ensure that no record lockec by a dead client lets another waiting client starve.
Now my question:
Is this ok to catch the InterruptedException and not to throw it further to the client?
Because the InterruptedException which may occur for the lockRecord I wrapped it in a RuntimeException which will be thrown to the client.
Comments?
Thanks in advance & greetings
Ulrich