Package org.apache.xindice.core.meta

Examples of org.apache.xindice.core.meta.TimeRecord


   }

   // methods for recording the times when meta data is enabled.
   public synchronized void recordTime( String path, long created, long modified )
   {
      TimeRecord rec = (TimeRecord)timestamps.get(path);
      if( null == rec ) {
         rec = new TimeRecord(created, modified);
         timestamps.put(path, rec);
      }
      else
      {
         if( created > 0 )
            rec.setCreatedTime(created);
         if( modified > 0 )
            rec.setModifiedTime(modified);
      }
   }
View Full Code Here


      timestamps.remove(path);
   }

   public synchronized TimeRecord getTime( String path )
   {
      TimeRecord rec = (TimeRecord)timestamps.get(path);
      return rec;
   }
View Full Code Here

TOP

Related Classes of org.apache.xindice.core.meta.TimeRecord

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.