You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@plc4x.apache.org by Christofer Dutz <ch...@c-ware.de> on 2024/07/05 07:11:23 UTC
Making the Connection Cache closable?
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
AW: Making the Connection Cache closable?
Posted by Christofer Dutz <ch...@c-ware.de>.
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 <ot...@gmail.com>
Datum: Freitag, 5. Juli 2024 um 09:13
An: dev@plc4x.apache.org <de...@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.dutz@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
>
Re: Making the Connection Cache closable?
Posted by Lukas Ott <ot...@gmail.com>.
+1 that is really a useful and needed feature.
Am Fr., 5. Juli 2024 um 09:11 Uhr schrieb Christofer Dutz <
christofer.dutz@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
>