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
Interface EvictionAlgorithm

All Known Implementing Classes:
  LRUAlgorithm

public interface EvictionAlgorithm

Interface for all eviction algorithm

Author:
  Ben Wang 2-2004

Method Summary
`void` | `process(Region region)` Entry point for evictin algorithm.
`void` | `resetEvictionQueue(Region region)` Reset the whole eviction queue.

Method Detail

### process

    public void process(Region region)
                 throws EvictionException

  Entry point for evictin algorithm. This is an api called by the EvictionTimerTask to process the node events in waiting and actual pruning, if necessary.

  Parameters:
    `region` - Region that this algorithm will operate on.
  Throws:
    `EvictionException`

### resetEvictionQueue

    public void resetEvictionQueue(Region region)

  Reset the whole eviction queue. Queue may needs to be reset due to corrupted state, for example.

  Parameters:
    `region` - Region that this algorithm will operate on.

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 © 2002 JBoss Group, LLC. All Rights Reserved.