cache4j v0.4 API

net.sf.cache4j
Class CacheCleaner

java.lang.Object
  extended byjava.lang.Thread
      extended bynet.sf.cache4j.CacheCleaner
All Implemented Interfaces:
java.lang.Runnable

public class CacheCleaner
extends java.lang.Thread

Класс CacheCleaner выполняет очистку устаревших объектов


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CacheCleaner(long cleanInterval)
          Конструктор
 
Method Summary
 void run()
          Основной метод.
 void setCleanInterval(long cleanInterval)
          Устанавливает интервал очистки
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheCleaner

public CacheCleaner(long cleanInterval)
Конструктор

Parameters:
cleanInterval - интервал(в миллисекундах) с которым нужно выполнять очистку
Method Detail

setCleanInterval

public void setCleanInterval(long cleanInterval)
Устанавливает интервал очистки

Parameters:
cleanInterval - интервал(в миллисекундах) с которым нужно выполнять очистку

run

public void run()
Основной метод. Для всех кешей вызывается метод clean


cache4j v0.4 API

Copyright (c) 2006, Yuriy Stepovoy. All rights reserved. email: stepovoy@gmail.com