Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jabber.jabberbeans
Class IdentifierCounter  view IdentifierCounter download IdentifierCounter.java

java.lang.Object
  extended byorg.jabber.jabberbeans.IdentifierCounter

class IdentifierCounter
extends java.lang.Object

This counter is used to add a unique identifier to outgoing messages, so that the message can be linked to an error message should one be reported by the server.


Field Summary
private static int currentValue
          current value of the counter
 
Constructor Summary
IdentifierCounter()
          Constructor which initializes the counter to "0"
IdentifierCounter(int startValue)
          Constructor which initializes the counter to any int value
 
Method Summary
static java.lang.String getNewIdentifier()
          return an identifier for use in creating a message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentValue

private static int currentValue
current value of the counter

Constructor Detail

IdentifierCounter

public IdentifierCounter()
Constructor which initializes the counter to "0"


IdentifierCounter

public IdentifierCounter(int startValue)
Constructor which initializes the counter to any int value

Method Detail

getNewIdentifier

public static java.lang.String getNewIdentifier()
return an identifier for use in creating a message.