public abstract class TransactionIdRepository
extends java.lang.Object
The SAP transaction id is intended to be unique, any duplicate transaction id that is sent or received should be ignored, and flagged for warning. In most instances this should never be the case, as Transaction ID generation is performed directly by the SAP back-end which guarantees its uniqueness.
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logR |
Constructor and Description |
---|
TransactionIdRepository() |
Modifier and Type | Method and Description |
---|---|
abstract TransactionId |
retrieveByMessageId(java.lang.String id)
Retrieve a tid from the store.
|
abstract TransactionId |
retrieveByTid(java.lang.String tid)
Retrieve a tid from the store.
|
abstract void |
saveOrUpdate(TransactionId tid)
Store this transaction id.
|
public TransactionIdRepository()
Object.Object()
public abstract TransactionId retrieveByTid(java.lang.String tid) throws java.lang.Exception
tid
- the transcation id.java.lang.Exception
- on error.public abstract TransactionId retrieveByMessageId(java.lang.String id) throws java.lang.Exception
id
- the AdaptrisMessage id.java.lang.Exception
- on error.public abstract void saveOrUpdate(TransactionId tid) throws java.lang.Exception
tid
- the transaction id.java.lang.Exception
- if there was any error, such as the TID already existing.Copyright Adaptris