|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.ei.txnhandler.hostcache.MemoryCache2
com.bankframe.serives.cache
package instead
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. |
java.util.Vector |
remove(java.util.Vector pkOfEntitiesToRemove)
Deprecated. Please see the Cache interface for a description of this method. |
java.util.Vector |
remove(java.util.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. |
static void |
setCachingEnabled(boolean val)
Deprecated. |
void |
store(java.util.Map pkOfEntitiesToDataPacketResponses)
Deprecated. Please see the Cache interface for a description of this method. |
void |
store(java.util.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 Cache
primaryKeyOfEntity
- 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 Cache
ProcessingErrorException
- 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 Profile
public int maxMemCacheSize()
maxMemCacheSize
in interface Profile
public int numberEntriesInDbCache() throws ProcessingErrorException
numberEntriesInDbCache
in interface Profile
ProcessingErrorException
- If there was an exception thrown in the execution of the method.public int numberEntriesInMemCache() throws ProcessingErrorException
numberEntriesInMemCache
in interface Profile
ProcessingErrorException
- If there was an exception thrown in the execution of the method.public void open() throws ProcessingErrorException
open
in interface Cache
ProcessingErrorException
- If there was an error opening the db connection.public java.util.Vector remove(java.util.Vector pkOfEntitiesToRemove) throws ProcessingErrorException
remove
in interface Cache
pkOfEntitiesToRemove
- Please see the Cache interface for a description of this method.
ProcessingErrorException
- Please see the Cache interface for a description of this method.public java.util.Vector remove(java.util.Vector pkOfEntitiesToRemove, boolean persistenceTableToo) throws ProcessingErrorException
remove
in interface Cache
pkOfEntitiesToRemove
- 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 Cache
primaryKeyOfEntity
- The key to search on.
ProcessingErrorException
- If an error occurred during processing.public static void setCachingEnabled(boolean val)
public void store(java.util.Map pkOfEntitiesToDataPacketResponses) throws ProcessingErrorException
store
in interface Cache
pkOfEntitiesToDataPacketResponses
- 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(java.util.Map pkOfEntitiesToDataPacketResponses, boolean persistent) throws ProcessingErrorException
store
in interface Cache
pkOfEntitiesToDataPacketResponses
- 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 |