|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.ei.txnhandler.hostcache.MemoryCache
com.bankframe.serives.cache package instead
public class MemoryCache
An in memory only implementation of the Cache interface.
| Method Summary | |
|---|---|
boolean |
checkPrimaryKeyInCache(DataPacket primaryKeyOfEntity,
long timeOutValue)
Deprecated. This method checks the cache for the designated pk. |
void |
close()
Deprecated. This method closes the database connection not used in this class. |
int |
findEntry(DataPacket primaryKeyOfEntity,
long timeOutValue)
Deprecated. This method finds the key in the cache. |
int |
maxDbCacheSize()
Deprecated. This method returns the max allowed size of database cache not used in this class. |
int |
maxMemCacheSize()
Deprecated. This method returns the max allowed size of the memory cache. |
int |
numberEntriesInDbCache()
Deprecated. This method returns the number of items currently in the overflow database cache not used in this class. |
int |
numberEntriesInMemCache()
Deprecated. This method returns the number of items currently in the memory cache. |
void |
open()
Deprecated. This method opens the database connection not used in this class. |
Vector |
remove(Vector pkOfEntitiesToRemove)
Deprecated. Please see the Cache interface for a description of this method. |
Vector |
remove(Vector pkOfEntitiesToRemove,
boolean persistenceTableToo)
Deprecated. Please see the Cache interface for a description of this method. |
DataPacket |
retrieve(DataPacket primaryKeyOfEntity)
Deprecated. This method retieves the value assoc. |
void |
store(Map pkOfEntitiesToDataPacketResponses)
Deprecated. Please see the Cache interface for a description of this method. |
void |
store(Map pkOfEntitiesToDataPacketResponses,
boolean persistent)
Deprecated. Please see the Cache interface for a description of this method. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean checkPrimaryKeyInCache(DataPacket primaryKeyOfEntity,
long timeOutValue)
throws ProcessingErrorException
checkPrimaryKeyInCache in interface CacheprimaryKeyOfEntity - The key to search on.timeOutValue - The timeout value of the key.
ProcessingErrorException - If an error occurred during processing.
public void close()
throws ProcessingErrorException
close in interface CacheProcessingErrorException - If an error occurred in closing the db connection.
public int findEntry(DataPacket primaryKeyOfEntity,
long timeOutValue)
throws ProcessingErrorException
primaryKeyOfEntity - The key to search on.timeOutValue - The timeout value of the key.
ProcessingErrorException - If an error occurred during processing.public int maxDbCacheSize()
maxDbCacheSize in interface Profilepublic int maxMemCacheSize()
maxMemCacheSize in interface Profile
public int numberEntriesInDbCache()
throws ProcessingErrorException
numberEntriesInDbCache in interface ProfileProcessingErrorException - If there was an exception thrown in the execution of the method.
public int numberEntriesInMemCache()
throws ProcessingErrorException
numberEntriesInMemCache in interface ProfileProcessingErrorException - If there was an exception thrown in the execution of the method.
public void open()
throws ProcessingErrorException
open in interface CacheProcessingErrorException - If there was an error opening the db connection.
public Vector remove(Vector pkOfEntitiesToRemove)
throws ProcessingErrorException
remove in interface CachepkOfEntitiesToRemove - Please see the Cache interface for a description of this method.
ProcessingErrorException - Please see the Cache interface for a description of this method.
public Vector remove(Vector pkOfEntitiesToRemove,
boolean persistenceTableToo)
throws ProcessingErrorException
remove in interface CachepkOfEntitiesToRemove - Please see the Cache interface for a description of this method.persistenceTableToo - not used in this class.
ProcessingErrorException - Please see the Cache interface for a description of this method.
public DataPacket retrieve(DataPacket primaryKeyOfEntity)
throws ProcessingErrorException
retrieve in interface CacheprimaryKeyOfEntity - The key to search on.
ProcessingErrorException - If an error occurred during processing.
public void store(Map pkOfEntitiesToDataPacketResponses)
throws ProcessingErrorException
store in interface CachepkOfEntitiesToDataPacketResponses - Please see the Cache interface for a description of this method.
ProcessingErrorException - Please see the Cache interface for a description of this method.
public void store(Map pkOfEntitiesToDataPacketResponses,
boolean persistent)
throws ProcessingErrorException
store in interface CachepkOfEntitiesToDataPacketResponses - Please see the Cache interface for a description of this method.persistent - Please see the Cache interface for a description of this method.
ProcessingErrorException - Please see the Cache interface for a description of this method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||