public class CachedServiceReplyCleaner extends Thread(Code)
This thread is responsible for cleaning the service reply cache. It
reads its configuration from
CachedServiceReplyCleanerConfig ,
and, if it is configured to be active, performs regularly
(its period is a configuration parameter) a removal of the
replies older than certain age (from configuration) from the cache.
author: Daniel Fernandez since: 1.0
Constructor Summary
public
CachedServiceReplyCleaner(int cleaningPeriodSeconds, int entryLifeTimeSeconds, Log log) Creates the thread and initializes its parameters.
Method Summary
public void
run() Performs a cyclic removal of old entries from the cache.
Constructor Detail
CachedServiceReplyCleaner
public CachedServiceReplyCleaner(int cleaningPeriodSeconds, int entryLifeTimeSeconds, Log log)(Code)
Creates the thread and initializes its parameters.
Parameters: cleaningPeriodSeconds - the activation period Parameters: entryLifeTimeSeconds - maximum age allowed for an entry. Parameters: log - the thread's log.