Hi,

One way would be to use Thread.interrupt, but I think that's rather ugly.
Another idea is to use a ThreadLocal, not sure about that either...

Regards,
Thomas

On Tuesday, November 17, 2015, Nicolas Fortin (OrbisGIS) <
[email protected]> wrote:

> Hi,
>
> We write some user defined h2 function that take a lot of time to deliver
> a row. We want to find a way to check if Statement.cancel( ) has been
> called inside the custom function code. May be through the providing of
> hidden argument in the function like the Connection.
>
>  Have you any idea to break the current limitation and allow users to
> check cancel without casting into h2 internals class ?
>
> Thanks
>
> --
> Nicolas Fortin
> Lab-STICC – CNRS UMR 6285 et Ecole Centrale de Nantes
> GIS        http://orbisgis.org
> Spatial DB http://h2gis.org
> Noise      http://noisemap.orbisgis.org
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> Visit this group at http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to