• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cewolf - producer's data is invalidated

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ulf.

I had a question regarding this. within the PageViewCountData class, there is a method "hasExpired" which returns whether the producer's data is over 5 seconds old or not.

I wanted to fully understand this, and perhaps solve the reason why I'm getting problems. Does this mean that after 5 seconds the date is set to be invalidated? The reason I bring this up, is that I am getting problems that sometimes, on page load, the content of the graphs are not showing. Now this could be down to multiple reason, of which I am checking, but this interested me and I thought i'd ask.

Does it mean that if the page takes longer than 5 seconds to load, the content will not show? I may be being stupid, but if this IS the case, how do I go about extending this?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The method is part of the DatasetProducer interface, the javadocs of which have more information about how it's used.

The gist is that it would not result in no image being produced, but incorrect use of it may lead to the produceDataset method being called more (or less) often than necessary (which may be a performance or correctness issue, depending on what that method does).
 
reply
    Bookmark Topic Watch Topic
  • New Topic