Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this? - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?
Date
Msg-id CADK3HHJmo4ayR=RKBeomggu48=tbGYV7HdX7FVP_QOoFt=du+Q@mail.gmail.com
Whole thread Raw
In response to Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?  (Craig Ringer <ringerc@ringerc.id.au>)
Responses Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?
Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?
List pgsql-jdbc
Craig,

That is the current implementation. What do you suggest as a more
robust implementation ?

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca



On Thu, Dec 15, 2011 at 9:02 AM, Craig Ringer <ringerc@ringerc.id.au> wrote:
> On 12/15/2011 07:29 PM, Radosław Smogura wrote:
>>
>> Long, long time ago I've sent implementation with timers, you need to
>> search archive If you need this.
>
>
> If it was ages ago, you probably used java.util.Timer, right?
>
> java.util.Timer is not suitable for use in a JDBC driver because it doesn't
> do any exception handling on the timer thread, it's subject to congestion on
> the timer thread, and it offers no way for the driver to control the timer
> thread to cleanly shut it down during unload. It's unusable in app servers
> and not really a great idea anywhere that needs to be robust and
> long-running.
>
> --
> Craig Ringer
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc

pgsql-jdbc by date:

Previous
From: Craig Ringer
Date:
Subject: Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?
Next
From: the6campbells
Date:
Subject: Re: getTables not returning 10 columns etc