| |
|
| java.lang.Object org.apache.roller.business.referrers.ReferrerQueueManagerImpl
ReferrerQueueManagerImpl | public class ReferrerQueueManagerImpl implements ReferrerQueueManager(Code) | | The base implementation of the ReferrerQueueManager.
This class is implemented using the singleton pattern to ensure that only
one instance exists at any given time.
This implementation can be configured to handle referrers in 2 ways ...
1. synchronously. referrers are processed immediately.
2. asynchronously. referrers are queued for later processing.
Users can control the referrer queue mode via properties in the static
roller.properties configuration file.
In asynchronous processing mode we start some number of worker threads which
run continously to process any referrers that have been queued. Each worker
processes queued referrers until the queue is empty, then sleeps for a given
amount of time. The number of workers used and their sleep time can be set
via properties of the static roller.properties file.
author: Allen Gilliland |
processReferrer | public void processReferrer(IncomingReferrer referrer)(Code) | | Process an incoming referrer.
If we are doing asynchronous referrer processing then the referrer will
just go into the queue for later processing. If not then we process it
now.
|
shutdown | public void shutdown()(Code) | | clean up.
|
|
|
|