Package com.iizix

Class 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 
      ConstructorDescription
      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 TypeMethodDescription
      java.lang.StringdumpCache​(java.lang.String indent)
      Dumps the cache.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Method Detail

      • dumpCache

        public java.lang.String dumpCache​(java.lang.String indent)
        Dumps the cache.
        Parameters:
        indent - The indent for each line after the header, i.e. all lines listing cached items.
        Returns:
        The dumped cache.