Re: Interrupting a fetch that is taking too long
Re: Interrupting a fetch that is taking too long
- Subject: Re: Interrupting a fetch that is taking too long
- From: "Shravan Kumar.M" <email@hidden>
- Date: Wed, 16 May 2007 11:34:58 +0530
Hello Ricardo,
I have a pointer for your question, please investigate it further how far it helps you and let me know how that goes.
In the EODatabaseChannel class we have two methods isFetchInProgress() and cancelFetch()
If your GUI has a Cancel Fetch button then, clicking on that should stop fetching i.e., invoke cancelFetch() in this action method, else programatically you can set some timer that checks for every few milliseconds isFetchInProgress() and if the query is still in progress after a configured max time to fetch, you can invoke cancelFetch() that interrupts fetch. Thanks & Rgds, Shravan Kumar.M
"Let us learn from the past to profit by the present,and from the present to live better in the future." --William WordsWorth --------------------------------------------------------------- Date: 16 May 2007 2:04:20 AM GMT+05:30 Subject: Interrupting a fetch that is taking too long
Hi All,
Let's say I have a GUI that lets users build queries to be used for a report. Then another process generates a report by applying this user defined query. However, if the query takes too long I would like to interrupt the query and then flag query for special handling.
Has anybody figured out a way to interrupt a fetch in EOF?
Thanks, Ricardo J. Parada
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden