com.alachisoft.jvcache.runtime.datasourceprovider
Interface WriteThruProvider


public interface WriteThruProvider

Provide Interface to Implements for WriteThruProvider Class


Method Summary
 java.util.HashMap addToSource(java.lang.String[] keys, java.lang.Object[] vals)
           
 boolean addToSource(java.lang.String key, java.lang.Object value)
           
 boolean clear()
           
 boolean removeFromSource(java.lang.String key)
           
 java.util.HashMap removeFromSource(java.lang.String[] keys)
           
 void start(java.util.HashMap parameters)
           
 void stop()
           
 java.util.HashMap updateSource(java.lang.String[] keys, java.lang.Object[] vals)
           
 boolean updateSource(java.lang.String key, java.lang.Object value)
           
 

Method Detail

start

void start(java.util.HashMap parameters)
           throws java.lang.Exception
Parameters:
parameters -
Throws:
java.lang.Exception

addToSource

boolean addToSource(java.lang.String key,
                    java.lang.Object value)
                    throws java.lang.Exception
Parameters:
key -
value -
Returns:
Throws:
java.lang.Exception

updateSource

boolean updateSource(java.lang.String key,
                     java.lang.Object value)
                     throws java.lang.Exception
Parameters:
key -
value -
Returns:
Throws:
java.lang.Exception

removeFromSource

boolean removeFromSource(java.lang.String key)
                         throws java.lang.Exception
Parameters:
key -
Returns:
Throws:
java.lang.Exception

clear

boolean clear()
              throws java.lang.Exception
Returns:
Throws:
java.lang.Exception

addToSource

java.util.HashMap addToSource(java.lang.String[] keys,
                              java.lang.Object[] vals)
                              throws java.lang.Exception
Parameters:
keys -
vals -
Returns:
Throws:
java.lang.Exception

updateSource

java.util.HashMap updateSource(java.lang.String[] keys,
                               java.lang.Object[] vals)
                               throws java.lang.Exception
Parameters:
keys -
vals -
Returns:
Throws:
java.lang.Exception

removeFromSource

java.util.HashMap removeFromSource(java.lang.String[] keys)
                                   throws java.lang.Exception
Parameters:
keys -
Returns:
Throws:
java.lang.Exception

stop

void stop()
          throws java.lang.Exception
Throws:
java.lang.Exception