org.jboss.messaging.core.impl
Class IDManager

java.lang.Object
  extended by org.jboss.messaging.core.impl.IDManager
All Implemented Interfaces:
MessagingComponent

public class IDManager
extends java.lang.Object
implements MessagingComponent

A IDManager.

Version:
$Revision: 2686 $ $Id: IDManager.java 2686 2007-05-15 08:47:20Z timfox $
Author:
Tim Fox, Ovidiu Feodorov

Constructor Summary
IDManager(java.lang.String counterName, int bigBlockSize, PersistenceManager pm)
           
 
Method Summary
 long getID()
           
 IDBlock getIDBlock(int size)
           
protected  void getNextBigBlock()
           
 void start()
           
 void stop()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IDManager

public IDManager(java.lang.String counterName,
                 int bigBlockSize,
                 PersistenceManager pm)
          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface MessagingComponent
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface MessagingComponent
Throws:
java.lang.Exception

getNextBigBlock

protected void getNextBigBlock()
                        throws java.lang.Exception
Throws:
java.lang.Exception

getIDBlock

public IDBlock getIDBlock(int size)
                   throws java.lang.Exception
Throws:
java.lang.Exception

getID

public long getID()
           throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006 JBoss Inc. All Rights Reserved.