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

From Craig Ringer
Subject Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?
Date
Msg-id 4EEAC19A.30806@ringerc.id.au
Whole thread Raw
In response to Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Radosław Smogura
Date:
Subject: Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there planto implement this?
Next
From: Stefan Schmieta
Date:
Subject: Re: Publish 9.1-901 JDBC drivers on maven central