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

## org.jboss.ejb.plugins
Class LRUEnterpriseContextCachePolicy.ResizerTask

    java.lang.Object
      |
      +--org.jboss.util.TimerTask
            |
            +--org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy.ResizerTask

All Implemented Interfaces:
  java.lang.Comparable, Executable

Enclosing class:
  LRUEnterpriseContextCachePolicy

protected class LRUEnterpriseContextCachePolicy.ResizerTask
extends TimerTask

This TimerTask resizes the cache capacity using the cache miss frequency algorithm, that is the more cache misses we have, the more the cache size is enlarged, and viceversa.

Of course, the maximum and minimum capacity are the bounds that this resizer never passes.

Constructor Summary
`protected` | `LRUEnterpriseContextCachePolicy.ResizerTask(long resizerPeriod)`

Method Summary
`void` | `execute()` The task to be executed, to be implemented in subclasses.

Methods inherited from class org.jboss.util.TimerTask
`cancel, compareTo, getPeriod`

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

Constructor Detail

### LRUEnterpriseContextCachePolicy.ResizerTask

    protected LRUEnterpriseContextCachePolicy.ResizerTask(long resizerPeriod)

Method Detail

### execute

    public void execute()

  Description copied from class: `TimerTask`
  The task to be executed, to be implemented in subclasses.
  Overrides:
    `execute` in class `TimerTask`

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

Copyright © 2000 The JBoss Organization. All Rights Reserved.