public class SimpleIdCounter extends java.lang.Object implements IdMapCounter
| Modifier and Type | Field and Description |
|---|---|
protected long |
number
The number.
|
protected java.lang.String |
prefixId
The prefix id.
|
| Constructor and Description |
|---|
SimpleIdCounter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId(java.lang.Object obj)
Get a new Id
|
java.lang.String |
getPrefixId()
Set the Session Prefix for a Peer
|
java.lang.Object |
getPrio()
Gets the prio.
|
char |
getSplitter() |
void |
readId(java.lang.String jsonId)
Read a Id from jsonString
|
IdMapCounter |
withNumber(long number) |
IdMapCounter |
withPrefixId(java.lang.String value)
Set the Session Prefix for a Peer
|
SimpleIdCounter |
withPrio(java.lang.Object prio)
Sets the prio.
|
IdMapCounter |
withSplitter(char splitter)
Sets the splitter for The session id
|
protected java.lang.String prefixId
protected long number
public IdMapCounter withNumber(long number)
public IdMapCounter withPrefixId(java.lang.String value)
withPrefixId in interface IdMapCountervalue - the new prefix idpublic java.lang.String getPrefixId()
getPrefixId in interface IdMapCounterpublic java.lang.String getId(java.lang.Object obj)
getId in interface IdMapCounterobj - the objpublic void readId(java.lang.String jsonId)
readId in interface IdMapCounterjsonId - the last id from Messagepublic char getSplitter()
getSplitter in interface IdMapCounterpublic IdMapCounter withSplitter(char splitter)
IdMapCounterwithSplitter in interface IdMapCountersplitter - the new splitter character for the session idpublic java.lang.Object getPrio()
getPrio in interface IdMapCounterpublic SimpleIdCounter withPrio(java.lang.Object prio)
prio - the new prio