Class Info
java.lang.Object
com.realtime.crossfire.jxclient.metaserver.Info
An entry in the cache. It consists of a
MetaserverEntry and a
timestamp of last update.-
Constructor Summary
ConstructorsConstructorDescriptionInfo(@NotNull MetaserverEntry metaserverEntry) Creates a new instance.Info(@NotNull MetaserverEntry metaserverEntry, long timestamp) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescription@NotNull MetaserverEntryReturns the metaserver entry.longReturns the timestamp.
-
Constructor Details
-
Info
Creates a new instance. Sets the timestamp to "now".- Parameters:
metaserverEntry- the metaserver entry
-
Info
Creates a new instance.- Parameters:
metaserverEntry- the metaserver entrytimestamp- the timestamp
-
-
Method Details
-
getMetaserverEntry
Returns the metaserver entry.- Returns:
- the metaserver entry
-
getTimestamp
public long getTimestamp()Returns the timestamp.- Returns:
- the timestamp
-