org.apache.labs.bananadb.store.sequence
Class SequenceManager

java.lang.Object
  extended by org.apache.labs.bananadb.store.sequence.SequenceManager
Direct Known Subclasses:
FilebasedSequenceManager, UnsafeSequenceManager

public abstract class SequenceManager
extends java.lang.Object

Since:
2009-mar-22 15:03:35
Author:
kalle

Nested Class Summary
 class SequenceManager.Sequence<T>
           
 
Constructor Summary
SequenceManager()
           
 
Method Summary
abstract  void close()
           
abstract
<T> SequenceManager.Sequence<T>
getOrRegisterSequence(java.lang.Class<T> valueType, java.lang.String name)
           
abstract  SequenceManager.Sequence.ReservedSequenceRange reserve(java.lang.String name, int requestedSize)
           
abstract
<T> SequenceManager.Sequence<T>
sequenceFactory(java.lang.Class<T> valueType, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceManager

public SequenceManager()
Method Detail

close

public abstract void close()
                    throws java.io.IOException
Throws:
java.io.IOException

reserve

public abstract SequenceManager.Sequence.ReservedSequenceRange reserve(java.lang.String name,
                                                                       int requestedSize)
                                                                throws java.io.IOException
Throws:
java.io.IOException

getOrRegisterSequence

public abstract <T> SequenceManager.Sequence<T> getOrRegisterSequence(java.lang.Class<T> valueType,
                                                                      java.lang.String name)
                                                           throws java.io.IOException
Throws:
java.io.IOException

sequenceFactory

public abstract <T> SequenceManager.Sequence<T> sequenceFactory(java.lang.Class<T> valueType,
                                                                java.lang.String name)
                                                     throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2009 Apache Software Foundation. All Rights Reserved.