Package org.cilogon.oauth2.servlet.util
Interface Incrementable
-
- All Superinterfaces:
edu.uiuc.ncsa.security.core.Initializable
- All Known Implementing Classes:
DerbySequence
,FSSequence
,MemorySequence
,MySQLSequence
,PostgresSequence
,Sequence
public interface Incrementable extends edu.uiuc.ncsa.security.core.Initializable
An interface for things that need to return a next value atomically.Created by Jeff Gaynor
on May 10, 2010 at 10:50:54 AM
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
createNew(long initialValue)
This takes the place (or should) ofInitializable.createNew()
and passes along the first value of the newly created sequence.long
nextValue()
-
-
-
Method Detail
-
nextValue
long nextValue()
-
createNew
boolean createNew(long initialValue)
This takes the place (or should) ofInitializable.createNew()
and passes along the first value of the newly created sequence. Using this method without a value takes whatever the underlying implementation deems fit for a first value should be.- Parameters:
initialValue
-- Returns:
-
-