com.metamatrix.common.id.dbid.spi
Class InMemoryIDController

java.lang.Object
  extended by com.metamatrix.common.id.dbid.spi.InMemoryIDController
All Implemented Interfaces:
DBIDController

public class InMemoryIDController
extends java.lang.Object
implements DBIDController


Constructor Summary
InMemoryIDController()
           
 
Method Summary
 ReservedIDBlock createIDBlock(long blockSize, java.lang.String context)
           
 long getUniqueID(java.lang.String context)
           
 long getUniqueID(java.lang.String context, boolean enableRollOver)
           
 void setContextBlockSize(java.lang.String context, long size)
           
 void shutDown()
          Nothing to shutdown when inmemory is used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryIDController

public InMemoryIDController()
Method Detail

createIDBlock

public ReservedIDBlock createIDBlock(long blockSize,
                                     java.lang.String context)
                              throws DBIDGeneratorException
Throws:
DBIDGeneratorException

getUniqueID

public long getUniqueID(java.lang.String context,
                        boolean enableRollOver)
                 throws DBIDGeneratorException
Specified by:
getUniqueID in interface DBIDController
Throws:
DBIDGeneratorException

getUniqueID

public long getUniqueID(java.lang.String context)
                 throws DBIDGeneratorException
Specified by:
getUniqueID in interface DBIDController
Throws:
DBIDGeneratorException

setContextBlockSize

public void setContextBlockSize(java.lang.String context,
                                long size)
Specified by:
setContextBlockSize in interface DBIDController

shutDown

public void shutDown()
Nothing to shutdown when inmemory is used.

Specified by:
shutDown in interface DBIDController


Copyright © 2009. All Rights Reserved.