Class Info


  • public class Info
    extends java.lang.Object
    An entry in the cache. It consists of a MetaserverEntry and a timestamp of last update.
    • Constructor Detail

      • Info

        public Info​(@NotNull
                    @NotNull MetaserverEntry metaserverEntry)
        Creates a new instance. Sets the timestamp to "now".
        Parameters:
        metaserverEntry - the metaserver entry
      • Info

        public Info​(@NotNull
                    @NotNull MetaserverEntry metaserverEntry,
                    long timestamp)
        Creates a new instance.
        Parameters:
        metaserverEntry - the metaserver entry
        timestamp - the timestamp
    • Method Detail

      • getMetaserverEntry

        @NotNull
        public @NotNull MetaserverEntry getMetaserverEntry()
        Returns the metaserver entry.
        Returns:
        the metaserver entry
      • getTimestamp

        public long getTimestamp()
        Returns the timestamp.
        Returns:
        the timestamp