net.obsearch.cache
Interface OBCacheHandlerByteArray<O>

All Superinterfaces:
OBCacheHandler<O>

public interface OBCacheHandlerByteArray<O>
extends OBCacheHandler<O>

OBCacheLoader defines objects that can load objects possibly from secondary storage


Method Summary
 O loadObject(byte[] key)
          Load an object with the given key from secondary storage.
 void store(byte[] key, O object)
          Store object in the database with the given key.
 
Methods inherited from interface net.obsearch.cache.OBCacheHandler
getDBSize
 

Method Detail

loadObject

O loadObject(byte[] key)
             throws OutOfRangeException,
                    OBException,
                    InstantiationException,
                    IllegalAccessException,
                    OBStorageException,
                    IllegalIdException
Load an object with the given key from secondary storage.

Parameters:
key -
Returns:
Throws:
OutOfRangeException
OBException
InstantiationException
IllegalAccessException
OBStorageException
IllegalIdException

store

void store(byte[] key,
           O object)
           throws OBException
Store object in the database with the given key. This will be called when the cache decides to remove key from the cache.

Parameters:
object -
Throws:
OBException


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.