Class MimeMetadata

  • All Implemented Interfaces:
    Metadata

    public class MimeMetadata
    extends java.lang.Object
    implements Metadata
    Metadata for MIME data stored in REST servers.
    Since:
    5.3
    Author:
    Galder ZamarreƱo
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String contentType  
    • Constructor Summary

      Constructors 
      Constructor Description
      MimeMetadata​(java.lang.String contentType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Metadata.Builder builder()
      Returns an instance of Metadata.Builder which can be used to build new instances of Metadata instance which are full copies of this Metadata.
      java.lang.String contentType()  
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      long lifespan()
      Returns the lifespan of the cache entry with which this metadata object is associated, in milliseconds.
      long maxIdle()
      Returns the the maximum amount of time that the cache entry associated with this metadata object is allowed to be idle for before it is considered as expired, in milliseconds.
      java.lang.String toString()  
      EntryVersion version()
      Returns the version of the cache entry with which this metadata object is associated.
      • Methods inherited from class java.lang.Object

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

      • contentType

        protected final java.lang.String contentType
    • Constructor Detail

      • MimeMetadata

        public MimeMetadata​(java.lang.String contentType)
    • Method Detail

      • lifespan

        public long lifespan()
        Description copied from interface: Metadata
        Returns the lifespan of the cache entry with which this metadata object is associated, in milliseconds. Negative values are interpreted as unlimited lifespan.
        Specified by:
        lifespan in interface Metadata
        Returns:
        lifespan of the entry in number of milliseconds
      • maxIdle

        public long maxIdle()
        Description copied from interface: Metadata
        Returns the the maximum amount of time that the cache entry associated with this metadata object is allowed to be idle for before it is considered as expired, in milliseconds.
        Specified by:
        maxIdle in interface Metadata
        Returns:
        maximum idle time of the entry in number of milliseconds
      • version

        public EntryVersion version()
        Description copied from interface: Metadata
        Returns the version of the cache entry with which this metadata object is associated.
        Specified by:
        version in interface Metadata
        Returns:
        version of the entry
      • contentType

        public java.lang.String contentType()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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