com.realtime.crossfire.jxclient.metaserver
Class Info

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

public class Info
extends java.lang.Object

An entry in the cache. It consists of a MetaserverEntry and a timestamp of last update.


Field Summary
private  MetaserverEntry metaserverEntry
          The metaserver entry.
private  long timestamp
          The timestamp of last update.
 
Constructor Summary
Info(MetaserverEntry metaserverEntry)
          Create a new instance.
Info(MetaserverEntry metaserverEntry, long timestamp)
          Create a new instance.
 
Method Summary
 MetaserverEntry getMetaserverEntry()
          Return the metaserver entry.
 long getTimestamp()
          Return the timestamp.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metaserverEntry

@NotNull
private final MetaserverEntry metaserverEntry
The metaserver entry.


timestamp

private final long timestamp
The timestamp of last update.

Constructor Detail

Info

public Info(@NotNull
            MetaserverEntry metaserverEntry)
Create a new instance. Sets the timestamp to "now".

Parameters:
metaserverEntry - The metaserver entry.

Info

public Info(@NotNull
            MetaserverEntry metaserverEntry,
            long timestamp)
Create a new instance.

Parameters:
metaserverEntry - The metaserver entry.
timestamp - The timestamp.
Method Detail

getMetaserverEntry

@NotNull
public MetaserverEntry getMetaserverEntry()
Return the metaserver entry.

Returns:
The metaserver entry.

getTimestamp

public long getTimestamp()
Return the timestamp.

Returns:
The timestamp.