com.alachisoft.ncache.runtime.cacheloader
Interface CacheLoader


public interface CacheLoader


Method Summary
 void dispose()
          Perform tasks associated with freeing, releasing, or resetting resources.
 void init(java.util.HashMap parameters)
          Perform tasks like allocating resources or acquiring connections etc.
 boolean loadNext(java.util.LinkedHashMap data, LoaderState state)
          Responsible for loading of items.
 

Method Detail

dispose

void dispose()
             throws java.lang.Exception
Perform tasks associated with freeing, releasing, or resetting resources.

Throws:
java.lang.Exception

init

void init(java.util.HashMap parameters)
          throws java.lang.Exception
Perform tasks like allocating resources or acquiring connections etc.

Parameters:
parameters - - Startup parameters defined in the configuration
Throws:
java.lang.Exception

loadNext

boolean loadNext(java.util.LinkedHashMap data,
                 LoaderState state)
                 throws java.lang.Exception
Responsible for loading of items.

Parameters:
data - - key used to reference object
index - - starting index for the collection
Returns:
object
Throws:
java.lang.Exception