#include <DocumentFetcher.hpp>
Inheritance diagram for UZI::DocumentFetcher:
Public Member Functions | |
DocumentFetcher () | |
virtual uint32 | isItemFetched (volatile Item &item) const =0 |
Check if all data for a previously queued item has been received. | |
virtual uint32 | isItemFetched (volatile Cache::Item &item) const |
Check if all data for a previously queued item has been received. | |
virtual bool | queueDocumentToFetch (volatile Item &item, void *opaque=0)=0 |
Add a document to fetch, as soon as possible, to the query list. | |
virtual bool | queueDocumentToFetch (volatile Cache::Item &item, void *opaque=0) |
Add a document to fetch, as soon as possible, to the query list. | |
~DocumentFetcher () |
UZI::DocumentFetcher::DocumentFetcher | ( | ) | [inline] |
UZI::DocumentFetcher::~DocumentFetcher | ( | ) | [inline] |
virtual uint32 Cache::RequiredFetcherImplementation::isItemFetched | ( | volatile Item & | item | ) | const [pure virtual, inherited] |
Check if all data for a previously queued item has been received.
The holder will call this method to check if an item is fully available, or is being fetched. It's the fetcher role to return the state of the fetching.
item | A reference on an item to check reception |
virtual uint32 UZI::DocumentFetcher::isItemFetched | ( | volatile Cache::Item & | item | ) | const [inline, virtual] |
Check if all data for a previously queued item has been received.
The holder will call this method to check if an item is fully available, or is being fetched. It's the fetcher role to return the state of the fetching.
item | A reference on an item to check reception |
virtual bool Cache::RequiredFetcherImplementation::queueDocumentToFetch | ( | volatile Item & | item, | |
void * | opaque = 0 | |||
) | [pure virtual, inherited] |
Add a document to fetch, as soon as possible, to the query list.
The holder will call this method when the cache item is missed (either item's lifetime expired, or on not found event). It's possible to queue the fetching on a thread pool. The cache will then wait until a signal is sent to it, and returns the fetched item's data on success.
item | A reference on an item to fetch as soon as possible | |
opaque | An opaque object that could be used to pass any structure from the cache to the fetcher |
virtual bool UZI::DocumentFetcher::queueDocumentToFetch | ( | volatile Cache::Item & | item, | |
void * | opaque = 0 | |||
) | [inline, virtual] |
Add a document to fetch, as soon as possible, to the query list.
The holder will call this method when the cache item is missed (either item's lifetime expired, or on not found event). It's possible to queue the fetching on a thread pool. The cache will then wait until a signal is sent to it, and returns the fetched item's data on success.
item | A reference on an item to fetch as soon as possible | |
opaque | An opaque object that could be used to pass any structure from the cache to the fetcher |