org.shoal.ha.cache.api
Class ObjectKeyHelper<K>

java.lang.Object
  extended by org.shoal.ha.cache.api.ObjectKeyHelper<K>
All Implemented Interfaces:
DataStoreKeyHelper<K>

public class ObjectKeyHelper<K>
extends java.lang.Object
implements DataStoreKeyHelper<K>

Author:
Mahesh Kannan

Constructor Summary
ObjectKeyHelper(java.lang.ClassLoader loader, ObjectInputOutputStreamFactory factory)
           
 
Method Summary
 K readKey(ReplicationInputStream ris)
           
 void writeKey(ReplicationOutputStream ros, K k)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectKeyHelper

public ObjectKeyHelper(java.lang.ClassLoader loader,
                       ObjectInputOutputStreamFactory factory)
Method Detail

writeKey

public void writeKey(ReplicationOutputStream ros,
                     K k)
              throws java.io.IOException
Specified by:
writeKey in interface DataStoreKeyHelper<K>
Throws:
java.io.IOException

readKey

public K readKey(ReplicationInputStream ris)
          throws DataStoreException
Specified by:
readKey in interface DataStoreKeyHelper<K>
Throws:
DataStoreException


Copyright © 2010. All Rights Reserved.