Class InMemory.DataContainer

    • Field Detail

      • m_Data

        protected byte[] m_Data
        the data item.
      • m_Expiry

        protected Date m_Expiry
        the expiry timestamp.
    • Constructor Detail

      • DataContainer

        public DataContainer​(byte[] data,
                             Date expiry)
        Initializes the container.
        Parameters:
        data - the data to wrap
        expiry - the expiry timestamp
    • Method Detail

      • getData

        public byte[] getData()
        Returns the stored data.
        Returns:
        the data
      • getExpiry

        public Date getExpiry()
        Returns the expiry timestamp.
        Returns:
        the expiry
      • hasExpired

        public boolean hasExpired()
        Returns whether the data item has expired and need to be removed.
        Returns:
        true if expired