java.lang.Object
com.realtime.crossfire.jxclient.metaserver.Info

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

    • 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 Details

    • getMetaserverEntry

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

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