pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Radosław Smogura <rsmogura@softperience.eu>
Cc: David Fetter <david@fetter.org>
Cc: Sylvain Mougenot <smougenot@sqli.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?
Date: Fri, 16 Dec 2011 11:57:14 +0800
Message-ID: <4EEAC19A.30806@ringerc.id.au> (raw)
In-Reply-To: <CADK3HHJmo4ayR=RKBeomggu48=tbGYV7HdX7FVP_QOoFt=du+Q@mail.gmail.com>
References: <CACKdPFjK_UsZ5wExD-RvBbvi6Zo-VYtoxQsCUpWXzTN9kywj7w@mail.gmail.com>
	<4EE8AC41.2040505@ringerc.id.au>
	<20111214161349.GA31176@fetter.org>
	<4EE968FF.5010604@ringerc.id.au>
	<4EE97B85.50909@ringerc.id.au>
	<c138137e3524335c64e646b0e88e7dbc@mail.softperience.eu>
	<4EE9FE03.7070107@ringerc.id.au>
	<CADK3HHJmo4ayR=RKBeomggu48=tbGYV7HdX7FVP_QOoFt=du+Q@mail.gmail.com>

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-fri...

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

--
Craig Ringer



view thread (18+ messages)

Message-ID: <4EEAC19A.30806@ringerc.id.au>
Permalink:  ../4EEAC19A.30806@ringerc.id.au/
Also on:    postgresql.org/message-id/4EEAC19A.30806@ringerc.id.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ringerc@ringerc.id.au, pg@fastcrypt.com, rsmogura@softperience.eu, david@fetter.org, smougenot@sqli.com, pgsql-jdbc@postgresql.org
  Subject: Re: Re: [SQL] JDBC Statement.setQueryTimeout : is there plan to implement this?
  In-Reply-To: <4EEAC19A.30806@ringerc.id.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox