org.hibernate.testing.cache
Class Timestamper

java.lang.Object
  extended by org.hibernate.testing.cache.Timestamper

public final class Timestamper
extends 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
static short ONE_MS
           
 
Method Summary
static long next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONE_MS

public static final short ONE_MS
See Also:
Constant Field Values
Method Detail

next

public static long next()


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.