[hibernate-dev] HSEARCH-615 Support time-constrained queries returning the first available results

Emmanuel Bernard emmanuel at hibernate.org
Wed Dec 8 06:48:48 EST 2010


On 8 déc. 2010, at 12:06, Hardy Ferentschik wrote:

> On Wed, 08 Dec 2010 11:40:57 +0100, Emmanuel Bernard <emmanuel at hibernate.org> wrote:
> 
>> limitExecutionTimeTo (or boundExecutionTimeTo) seems exactly what we are looking for.
>> 
>> WDYT?
> 
> I find it a little confusing to have setTimeout and limitFetchingTime (or be it limitExecutionTimeTo).
> Why not having another version of setTimeout - setTimeout(long timeout, TimeUnit timeUnit, boolean allowPartialResults)?

setTimeOut raises a QueryTimeoutException, limitFetchingTime does not. That's a big enough difference to use a separate method.



More information about the hibernate-dev mailing list