prupp
Class NCacheEntry

java.lang.Object
  |
  +--prupp.NCacheEntry

public class NCacheEntry
extends java.lang.Object
implements java.io.Serializable

A cached object.

See Also:
Serialized Form

Constructor Summary
NCacheEntry(java.lang.Object key, java.lang.String filename, long id)
          Create a new CacheEntry for given key and filename
 
Method Summary
 java.util.Date getExpires()
          get the expiry-date of our file
 java.lang.String getFileName()
          get the filename were data is stored
 long getId()
          get the id of our entry.
 java.lang.Object getKey()
          get the key were holding data for
 long getSize()
          get the size of our file
 void setExpires(java.util.Date d)
          sets the expirydate of our data
protected  void setFileName(java.lang.String filename)
          set the filename were we will save data
protected  void setKey(java.lang.Object key)
          Set the key were holding data for
 void setSize(long size)
          sets the size of our data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NCacheEntry

public NCacheEntry(java.lang.Object key,
                   java.lang.String filename,
                   long id)
Create a new CacheEntry for given key and filename
Parameters:
key - the key for the object.
filename - the filename were we store our data
Method Detail

getFileName

public java.lang.String getFileName()
get the filename were data is stored
Returns:
a filename

setFileName

protected void setFileName(java.lang.String filename)
set the filename were we will save data
Parameters:
filename - the name of the File were data is saved.

setKey

protected void setKey(java.lang.Object key)
Set the key were holding data for
Parameters:
key - the key we have data for

getKey

public java.lang.Object getKey()
get the key were holding data for
Returns:
the keyobject

getSize

public long getSize()
get the size of our file
Returns:
the size of our data

setSize

public void setSize(long size)
sets the size of our data
Parameters:
size - the new Size

getExpires

public java.util.Date getExpires()
get the expiry-date of our file
Returns:
the expiry date of our data

setExpires

public void setExpires(java.util.Date d)
sets the expirydate of our data
Parameters:
d - the new expiry-date.

getId

public long getId()
get the id of our entry.
Returns:
the id of the entry.