All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.cache.eviction.NodeEntry Maven / Gradle / Ivy

There is a newer version: 1.4.1.GA
Show newest version
package org.jboss.cache.eviction;

import org.jboss.cache.Fqn;

/**
 * Value object used in queue.
 *
 * @author Ben Wang 2-2004
 */
public class NodeEntry
{
   private long modifiedTimeStamp_;
   private NodeEntry previous_;
   private NodeEntry next_;
   private Fqn fqn_;

   public NodeEntry(Fqn fqn)
   {
      setFqn(fqn);
   }

   public NodeEntry(String fqn)
   {
      setFqn(Fqn.fromString(fqn));
   }

    /**
     * Get modified time stamp. This stamp is created during the node is
     * processed so it has some fuzy tolerance in there.
     * @return
     */
   long getModifiedTimeStamp()
   {
      return modifiedTimeStamp_;
   }

   void setModifiedTimeStamp(long modifiedTimeStamp)
   {
      this.modifiedTimeStamp_ = modifiedTimeStamp;
   }

   NodeEntry getPrevious()
   {
      return previous_;
   }

   void setPrevious(NodeEntry previous)
   {
      this.previous_ = previous;
   }

   NodeEntry getNext()
   {
      return next_;
   }

   void setNext(NodeEntry next)
   {
      this.next_ = next;
   }

   Fqn getFqn()
   {
      return fqn_;
   }

   void setFqn(Fqn fqn)
   {
      this.fqn_ = fqn;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy