public class FiledHighestIdentifier extends HighestIdentifier
Constructor and Description |
---|
FiledHighestIdentifier(java.io.File directory,
long source)
Create a Filed Highest Identifier.
|
Modifier and Type | Method and Description |
---|---|
long |
next()
Increment the value
Over-riding methods can throw exceptions
|
void |
setIfHigher(long newValue)
Set the value to the given value if this is higher than the
current value.
|
get
public FiledHighestIdentifier(java.io.File directory, long source) throws SourceConnectorStateException, SourceConnectorIOException
directory
- the filesystem directory in which safe
values are stored.SourceConnectorIOException
SourceConnectorStateException
public void setIfHigher(long newValue) throws SourceConnectorStateException, SourceConnectorIOException
HighestIdentifier
setIfHigher
in class HighestIdentifier
newValue
- the value to be set if it is higher than the
current valueSourceConnectorStateException
SourceConnectorIOException
public long next() throws SourceConnectorStateException, SourceConnectorIOException
HighestIdentifier
next
in class HighestIdentifier
SourceConnectorStateException
SourceConnectorIOException