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

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?
Дата
Msg-id 4EEAC19A.30806@ringerc.id.au
обсуждение исходный текст
Ответ на Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?  (Dave Cramer <pg@fastcrypt.com>)
Список 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 по дате отправления:

Предыдущее
От: Radosław Smogura
Дата:
Сообщение: Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there planto implement this?
Следующее
От: Stefan Schmieta
Дата:
Сообщение: Re: Publish 9.1-901 JDBC drivers on maven central