org.exolab.jms.util
Class MessageIdHelper

java.lang.Object
  |
  +--org.exolab.jms.util.MessageIdHelper

public class MessageIdHelper
extends java.lang.Object

Helper class for manipulating JMSMessageIDs

Version:
$Revision: 1.2 $ $Date: 2003/08/07 13:33:12 $
Author:
Tim Anderson

Constructor Summary
MessageIdHelper()
           
 
Method Summary
static long convert(java.lang.String messageId)
          Convert a JMSMessageID to its long value
static java.lang.String generate(long Id)
          Generate a JMSMessageID
static java.lang.String getNull()
          Return the 'null' JMSMessageID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageIdHelper

public MessageIdHelper()
Method Detail

getNull

public static java.lang.String getNull()
Return the 'null' JMSMessageID. This is the first Id recognised by OpenJMS, but not assigned to messages.
Returns:
String the 'null' message Id

generate

public static java.lang.String generate(long Id)
Generate a JMSMessageID
Parameters:
Id - numeric representation of the Id
Returns:
String the generated JMSMessageID

convert

public static long convert(java.lang.String messageId)
Convert a JMSMessageID to its long value
Parameters:
messageId - JMSMessageID to convert
Returns:
long value of the JMSMessageID


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.