org.jboss.jms.message
Class MessageIdGenerator

java.lang.Object
  extended by org.jboss.jms.message.MessageIdGenerator

public class MessageIdGenerator
extends java.lang.Object

A MessageIdGenerator.

Version:
$Revision: 3197 $ $Id: MessageIdGenerator.java 3197 2007-10-18 15:51:20Z timfox $
Author:
Tim Fox, Ovidiu Feodorov

Field Summary
protected  int blockSize
           
protected  long high
           
protected  long nextID
           
 
Constructor Summary
MessageIdGenerator(int blockSize)
           
 
Method Summary
 long getId(ConnectionEndpoint connection)
           
protected  void getNextBlock(ConnectionEndpoint connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

high

protected long high

nextID

protected long nextID

blockSize

protected int blockSize
Constructor Detail

MessageIdGenerator

public MessageIdGenerator(int blockSize)
                   throws JMSException
Throws:
JMSException
Method Detail

getNextBlock

protected void getNextBlock(ConnectionEndpoint connection)
                     throws JMSException
Throws:
JMSException

getId

public long getId(ConnectionEndpoint connection)
           throws JMSException
Throws:
JMSException


Copyright © 2006 JBoss Inc. All Rights Reserved.