Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.cache.eviction
Class EvictionTimerTask

    java.lang.Object
      java.util.TimerTask
          org.jboss.cache.eviction.EvictionTimerTask

All Implemented Interfaces:
  java.lang.Runnable

    public class EvictionTimerTask

extends java.util.TimerTask

Timer threads to do periodic node clean up by running the eviction policy.

Version:
  $Revision: 1.4 $
Author:
  Ben Wang 2-2004, Daniel Huang (dhuang@jboss.org)

Constructor Summary
`EvictionTimerTask()`

Method Summary
`void` | `addRegionToProcess(Region region)` Add a Region to process by the Eviction Thread.
`void` | `removeRegionToProcess(Region region)` Remove a Region to process from the Eviction thread.
`void` | `run()` Run the eviction thread.

Methods inherited from class java.util.TimerTask
`cancel, scheduledExecutionTime`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### EvictionTimerTask

    public EvictionTimerTask()

Method Detail

### addRegionToProcess

    public void addRegionToProcess(Region region)

  Add a Region to process by the Eviction Thread.

  Parameters:
    `region` - Region to process.

### removeRegionToProcess

    public void removeRegionToProcess(Region region)

  Remove a Region to process from the Eviction thread.

  Parameters:
    `region` -

### run

    public void run()

  Run the eviction thread.

  This thread will synchronize the set of regions and iterate through every Region registered w/ the Eviction thread. It also synchronizes on each individual region as it is being processed.

  Specified by:
    `run` in interface `java.lang.Runnable`
  Specified by:
    `run` in class `java.util.TimerTask`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 1998-2005 JBoss Inc . All Rights Reserved.