Top Description Fields Constructors Methods
org.hibernate.cache.spi.support

public final Class SimpleTimestamper

extends Object
Class Inheritance
Imports
java.util.concurrent.TimeUnit, java.util.concurrent.atomic.AtomicLong

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

Authors
Hibernate team, Alex Snaps

Field Summary

Modifier and TypeField and Description
private static final int
public static final short
private static final AtomicLong

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static long
next()

public static int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BIN_DIGITSback to summary
private static final int BIN_DIGITS
ONE_MSback to summary
public static final short ONE_MS
VALUEback to summary
private static final AtomicLong VALUE

Constructor Detail

SimpleTimestamperback to summary
private SimpleTimestamper()

Method Detail

nextback to summary
public static long next()
timeOutback to summary
public static int timeOut()