Class SimpleTimestamper


  • public final class SimpleTimestamper
    extends java.lang.Object
    Generates increasing identifiers (in a single VM only). Not valid across multiple VMs. Identifiers are not necessarily strictly increasing, but usually are.

    Core while loop implemented by Alex Snaps - EHCache project - under ASL 2.0

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static short ONE_MS  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long next()  
      static int timeOut()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • next

        public static long next()
      • timeOut

        public static int timeOut()