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

## com.opensymphony.oscache.base
Class NeedsRefreshException

    java.lang.Object
      java.lang.Throwable
          java.lang.Exception
              com.opensymphony.oscache.base.NeedsRefreshException

All Implemented Interfaces:
  java.io.Serializable

public final class NeedsRefreshException
extends java.lang.Exception

This exception is thrown when retrieving an item from cache and it is expired. Note that for fault tolerance purposes, it is possible to retrieve the current cached object from the exception.

Version:
  $Revision: 1.1 $
Author:
  Francois Beauregard
See Also:
  Serialized Form

Constructor Summary
`NeedsRefreshException(java.lang.Object cacheContent)` Create a NeedsRefreshException

Method Summary
`java.lang.Object` | `getCacheContent()` Retrieve current object in the cache

Methods inherited from class java.lang.Throwable
`fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

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

Constructor Detail

### NeedsRefreshException

    public NeedsRefreshException(java.lang.Object cacheContent)

  Create a NeedsRefreshException

Method Detail

### getCacheContent

    public java.lang.Object getCacheContent()

  Retrieve current object in the cache

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| See www.opensymphony.com for more information.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD