DNS
Class CachedObject

java.lang.Object
  extended byDNS.CachedObject

class CachedObject
extends java.lang.Object

An object to hold elements stored in cache.


Field Summary
(package private)  long expires
          When this object should be removed from cache
(package private)  java.lang.String name
          The name of the RRGroup to be cached
(package private)  RRGroup rrg
          The RRGroup to be cached
 
Constructor Summary
CachedObject(java.lang.String name, RRGroup rrg, long expires)
           
 
Method Summary
 boolean isExpired()
          Determines if this element should now be removed from cache
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rrg

RRGroup rrg
The RRGroup to be cached


name

java.lang.String name
The name of the RRGroup to be cached


expires

long expires
When this object should be removed from cache

Constructor Detail

CachedObject

public CachedObject(java.lang.String name,
                    RRGroup rrg,
                    long expires)
Method Detail

isExpired

public boolean isExpired()
Determines if this element should now be removed from cache


toString

public java.lang.String toString()