Class Info
- java.lang.Object
-
- com.realtime.crossfire.jxclient.metaserver.Info
-
public class Info extends java.lang.ObjectAn entry in the cache. It consists of aMetaserverEntryand a timestamp of last update.
-
-
Constructor Summary
Constructors Constructor Description Info(@NotNull MetaserverEntry metaserverEntry)Creates a new instance.Info(@NotNull MetaserverEntry metaserverEntry, long timestamp)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull MetaserverEntrygetMetaserverEntry()Returns the metaserver entry.longgetTimestamp()Returns the timestamp.
-
-
-
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 entrytimestamp- 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
-
-