com.alachisoft.jvcache.runtime.cacheloader
Interface CacheLoader


public interface CacheLoader

Interface Provide Methods for Cache Loader Operations


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

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
state -
Returns:
object
Throws:
java.lang.Exception

dispose

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

Throws:
java.lang.Exception