org.apache.labs.bananadb.store.sequence
Class FilebasedSequenceManager.LongSequence

java.lang.Object
  extended by org.apache.labs.bananadb.store.sequence.SequenceManager.Sequence<T>
      extended by org.apache.labs.bananadb.store.sequence.FilebasedSequenceManager.Sequence<T>
          extended by org.apache.labs.bananadb.store.sequence.FilebasedSequenceManager.NumbericSequence<java.lang.Long>
              extended by org.apache.labs.bananadb.store.sequence.FilebasedSequenceManager.LongSequence
Enclosing class:
FilebasedSequenceManager

public class FilebasedSequenceManager.LongSequence
extends FilebasedSequenceManager.NumbericSequence<java.lang.Long>


Nested Class Summary
 class FilebasedSequenceManager.LongSequence.LongRange
           
 
Nested classes/interfaces inherited from class org.apache.labs.bananadb.store.sequence.FilebasedSequenceManager.NumbericSequence
FilebasedSequenceManager.NumbericSequence.NumericRange<T>
 
Nested classes/interfaces inherited from class org.apache.labs.bananadb.store.sequence.SequenceManager.Sequence
SequenceManager.Sequence.ReservedSequenceRange<T>
 
Field Summary
 
Fields inherited from class org.apache.labs.bananadb.store.sequence.FilebasedSequenceManager.NumbericSequence
lock, RAF
 
Constructor Summary
FilebasedSequenceManager.LongSequence(java.lang.String name)
           
 
Method Summary
 java.lang.Class<java.lang.Long> getValueType()
           
protected  void initializeHeader(java.io.RandomAccessFile headerRAF)
           
 SequenceManager.Sequence.ReservedSequenceRange<java.lang.Long> reserve(int requestedSize)
           
 
Methods inherited from class org.apache.labs.bananadb.store.sequence.FilebasedSequenceManager.NumbericSequence
close
 
Methods inherited from class org.apache.labs.bananadb.store.sequence.FilebasedSequenceManager.Sequence
release
 
Methods inherited from class org.apache.labs.bananadb.store.sequence.SequenceManager.Sequence
getName, next, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilebasedSequenceManager.LongSequence

public FilebasedSequenceManager.LongSequence(java.lang.String name)
                                      throws java.io.IOException
Throws:
java.io.IOException
Method Detail

initializeHeader

protected void initializeHeader(java.io.RandomAccessFile headerRAF)
                         throws java.io.IOException
Specified by:
initializeHeader in class FilebasedSequenceManager.NumbericSequence<java.lang.Long>
Throws:
java.io.IOException

getValueType

public java.lang.Class<java.lang.Long> getValueType()
Specified by:
getValueType in class SequenceManager.Sequence<java.lang.Long>

reserve

public SequenceManager.Sequence.ReservedSequenceRange<java.lang.Long> reserve(int requestedSize)
                                                                       throws java.io.IOException
Specified by:
reserve in class SequenceManager.Sequence<java.lang.Long>
Throws:
java.io.IOException


Copyright © 2009 Apache Software Foundation. All Rights Reserved.