Top Description Fields Constructors Methods
net.sf.ehcache.util

public Class AtomicLongSequence

extends Object
implements LongSequence
Class Inheritance
All Implemented Interfaces
net.sf.ehcache.util.LongSequence
Imports
java.util.concurrent.atomic.AtomicLong

Simple non-persistent implementation of LongSequence
Author
twu

Field Summary

Modifier and TypeField and Description
private final AtomicLong

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public long
next()

Implements net.sf.ehcache.util.LongSequence.next.

Get the next value in the sequence
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

counterback to summary
private final AtomicLong counter

Constructor Detail

AtomicLongSequenceback to summary
public AtomicLongSequence()

Method Detail

nextback to summary
public long next()

Implements net.sf.ehcache.util.LongSequence.next.

Doc from net.sf.ehcache.util.LongSequence.next.

Get the next value in the sequence

Returns:long

the next value

Annotations
@Override