Package org.serviceconnector.scmp
Class SCMPCacheId
java.lang.Object
org.serviceconnector.scmp.SCMPCacheId
The Class SCMPCacheId. Responsible to provide correct cache id for a specific request/response. Cache id is unique for every message. Format: CacheId / SequenceNr.
- Author:
- JTraber
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new cache id.SCMPCacheId(String cacheId) Instantiates a new sCMP cache id.SCMPCacheId(String cacheId, String sequenceNr) Instantiates a new sCMP cache id. -
Method Summary
Modifier and TypeMethodDescriptionGets the cache id.Gets the full cache id.Gets the sequence nr.voidreset()Reset.voidsetSequenceNr(String sequenceNr) Sets the sequence nr.toString()
-
Constructor Details
-
SCMPCacheId
public SCMPCacheId()Instantiates a new cache id. -
SCMPCacheId
Instantiates a new sCMP cache id.- Parameters:
cacheId- the cache id
-
SCMPCacheId
Instantiates a new sCMP cache id.- Parameters:
cacheId- the cache idsequenceNr- the sequence nr
-
-
Method Details
-
getCacheId
Gets the cache id.- Returns:
- the cache id
-
getFullCacheId
Gets the full cache id.- Returns:
- the full cache id
-
getSequenceNr
Gets the sequence nr.- Returns:
- the sequence nr
-
setSequenceNr
Sets the sequence nr.- Parameters:
sequenceNr- the new sequence nr
-
reset
public void reset()Reset. -
toString
-