We could store all ObjectoryClients in a Set or List and close every single of them when calling some method on the ObjectoryServerImp like closeAllClients().
I need this because when there's an exception that throws and isn't caught, the Objectory server will hang forever and does not respond to client's WS requests. Closing the connection to the clients, will trigger a re-establish on our application and will make it work again.
Ideally such uncaught exceptions shouldn't happen, but still it's good to close the connections and "restart" automatically when things go bad.
We could store all
ObjectoryClient
s in aSet
orList
and close every single of them when calling some method on theObjectoryServerImp
likecloseAllClients()
.I need this because when there's an exception that throws and isn't caught, the Objectory server will hang forever and does not respond to client's WS requests. Closing the connection to the clients, will trigger a re-establish on our application and will make it work again.
Ideally such uncaught exceptions shouldn't happen, but still it's good to close the connections and "restart" automatically when things go bad.