Package com.iizix
Class WriteCache
- java.lang.Object
- com.iizix.WriteCache
public final class WriteCache extends java.lang.Object
This class is used to handle writing strings to the cache used from the server to the client in transactions.- Author:
- Christopher Mindus
- See Also:
SendTransaction
Constructor Summary
Constructors Constructor Description WriteCache()
Creates the write cache initialized to hold a defined maximum amount of strings.WriteCache(int maxCount, int minLength, int maxLength)
Creates the write cache initialized to hold a defined maximum amount of strings.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
dumpCache(java.lang.String indent)
Dumps the cache.
Constructor Detail
WriteCache
public WriteCache()
Creates the write cache initialized to hold a defined maximum amount of strings. The default values for the cache are used, i.e. maxCount=700, minLength=7, maxLength=80.
WriteCache
public WriteCache(int maxCount, int minLength, int maxLength)
Creates the write cache initialized to hold a defined maximum amount of strings.- Parameters:
maxCount
- Maximum count of strings in the cache.minLength
- The minimum length of a string in the cache.maxLength
- The maximum length of a string in the cache.