java.lang.Object
org.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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentValue
private static int currentValue
- current value of the counter
IdentifierCounter
public IdentifierCounter()
- Constructor which initializes the counter to "0"
IdentifierCounter
public IdentifierCounter(int startValue)
- Constructor which initializes the counter to any int value
getNewIdentifier
public static java.lang.String getNewIdentifier()
- return an identifier for use in creating a message.