• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Interrupting a fetch that is taking too long
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Ricardo Parada <email@hidden>
Date: 16 May 2007 2:04:20 AM GMT+05:30
To: WebObjects-Dev Mailing List <email@hidden>
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

  • Prev by Date: Re: EOGenerator and prototypes
  • Next by Date: Re: [OT] file encoding
  • Previous by thread: Re: Interrupting a fetch that is taking too long
  • Next by thread: Re: Interrupting a fetch that is taking too long
  • Index(es):
    • Date
    • Thread