cache4j v0.4 API

net.sf.cache4j
Class CacheCleaner

java.lang.Object
  extended by java.lang.Thread
      extended by net.sf.cache4j.CacheCleaner
All Implemented Interfaces:
java.lang.Runnable

public class CacheCleaner
extends java.lang.Thread

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


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
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, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, 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

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

cache4j v0.4 API

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