Hi, I was also thinking, if it would make sense to make the normal PlcConnectionManager (which was already pointed out is more of a PlcConnectionFactory, as it doesn’t manage the connection after being created) more a “manager”. So, it should keep references to the connections it created and be able to close them by closing the PlcConnectionManager instance.
Chris Von: Lukas Ott <ott.lukas...@gmail.com> Datum: Freitag, 5. Juli 2024 um 09:13 An: dev@plc4x.apache.org <dev@plc4x.apache.org> Betreff: Re: Making the Connection Cache closable? +1 that is really a useful and needed feature. Am Fr., 5. Juli 2024 um 09:11 Uhr schrieb Christofer Dutz < christofer.d...@c-ware.de>: > Hi all, > > I recently had a discussion with our friends from StreamPipes and they > were having problems that they couldn’t force closing of a connection in > the connection-pool. > The use case they described was that the configuration of the connection > was changed, but the old connection stayed alive. > > I proposed adding a close() method to the connection-cache that shuts down > the connection cache and all connections it currently manages. > > If nobody objects within the next few hours, this is what I’ll be working > on this week’s PLC4X-Friday-Afternoon. > > Chris >