com.alachisoft.jvcache.runtime.datasourceprovider
Interface ReadThruProvider


public interface ReadThruProvider

Provide Interface to Implements for ReadThruProvider Class


Method Summary
 java.util.HashMap<java.lang.String,ProviderCacheItem> loadFromSource(java.lang.String[] keys)
           
 void loadFromSource(java.lang.String key, ProviderCacheItem cacheItem)
           
 void start(java.util.HashMap parameters)
          Perform tasks like allocating resources or acquiring connections etc.
 void stop()
          Perform tasks associated with freeing, releasing, or resetting resources.
 

Method Detail

start

void start(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

loadFromSource

void loadFromSource(java.lang.String key,
                    ProviderCacheItem cacheItem)
                    throws java.lang.Exception
Parameters:
key -
cacheItem -
Throws:
java.lang.Exception

loadFromSource

java.util.HashMap<java.lang.String,ProviderCacheItem> loadFromSource(java.lang.String[] keys)
                                                                     throws java.lang.Exception
Parameters:
keys - - array of keys
Returns:
key value HashMap
Throws:
java.lang.Exception

stop

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

Throws:
java.lang.Exception