Class CachedData


  • public final class CachedData
    extends java.lang.Object
    Cached data with its attributes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] data  
      private int flags  
      static int MAX_SIZE
      The maximum size that should be considered storing in a server.
    • Constructor Summary

      Constructors 
      Constructor Description
      CachedData​(int f, byte[] d, int maxSize)
      Get a CachedData instance for the given flags and byte array.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getData()
      Get the stored data.
      int getFlags()
      Get the flags stored along with this value.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • MAX_SIZE

        public static final int MAX_SIZE
        The maximum size that should be considered storing in a server.
        See Also:
        Constant Field Values
      • flags

        private final int flags
      • data

        private final byte[] data
    • Constructor Detail

      • CachedData

        public CachedData​(int f,
                          byte[] d,
                          int maxSize)
        Get a CachedData instance for the given flags and byte array.
        Parameters:
        f - the flags
        d - the data
        maxSize - the maximum allowable size.
    • Method Detail

      • getData

        public byte[] getData()
        Get the stored data.
      • getFlags

        public int getFlags()
        Get the flags stored along with this value.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object