Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?

From: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
To: Dave Cramer <pg(at)fastcrypt(dot)com>
Cc: Radosław Smogura <rsmogura(at)softperience(dot)eu>, David Fetter <david(at)fetter(dot)org>, Sylvain Mougenot <smougenot(at)sqli(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?
Date: 2011-12-16 03:57:14
Message-ID: 4EEAC19A.30806@ringerc.id.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc pgsql-sql

On 15/12/2011 10:17 PM, Dave Cramer wrote:
> Craig,
>
> That is the current implementation. What do you suggest as a more
> robust implementation ?

A java.util.concurrent.ScheduledThreadPoolExecutor

http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/package-summary.html

See discussion:
http://stackoverflow.com/questions/8514725/obtaining-a-java-util-timer-or-equivalent-in-a-javaee-friendly-way-that-works-on

I'd just skip building statementTimeout support for the JDBC3 driver,
avoiding the issue with the JDK 1.5 requirement that way.

--
Craig Ringer

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Stefan Schmieta 2011-12-16 18:57:32 Re: Publish 9.1-901 JDBC drivers on maven central
Previous Message Radosław Smogura 2011-12-15 20:49:02 Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?

Browse pgsql-sql by date

  From Date Subject
Next Message John Fabiani 2011-12-16 04:16:27 using a generated series in function
Previous Message Radosław Smogura 2011-12-15 20:49:02 Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?