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 4EE9FE03.7070107@ringerc.id.au
обсуждение исходный текст
Ответ на Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there planto implement this?  (Radosław Smogura <rsmogura@softperience.eu>)
Ответы Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?  (Dave Cramer <pg@fastcrypt.com>)
Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there planto implement this?  (Radosław Smogura <rsmogura@softperience.eu>)
Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there planto implement this?  (Radosław Smogura <rsmogura@softperience.eu>)
Список pgsql-jdbc
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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Radosław Smogura
Дата:
Сообщение: Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there planto implement this?
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?