|
If not dev, correct this wrong version label in perforce3227:3227\buildenvBE.Japro<CODELINE>src_macrospackjavadoc.properties | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.aii.af.service.idmap.MessageIDMapper
public class MessageIDMapper
MessageIDMapper is a singleton that allows applications to create id mappings in a transactional
manner.
MessageIDMapper mapper = MessageIDMapper.getInstance();
mapper.createIDMap(mid1, mid2);
| Method Summary | |
|---|---|
void |
createIDMap(MessageKey mkey1,
MessageKey mkey2,
long archiveAfter,
boolean callPMIAgent,
boolean transactional)
Creates a map between two message keys. |
void |
createIDMap(String mid1,
String mid2,
long archiveAfter)
|
void |
createIDMap(String mid1,
String mid2,
long archiveAfter,
boolean transactional)
Creates a map between two message ids. |
static MessageIDMapper |
getInstance()
Gets the singleton MessageIDMapper |
String |
getMappedId(String mid)
Retrieves a message id from the mapped message ids. |
MessageKey |
getMappedKey(MessageKey mkey)
Retrieves a message key from the mapped message keys. |
LinkedList<String[]> |
readIDMapEntries()
Reads all IDMap entries available in the DB and returnes them as a LinkedList of IDMap objects. |
String |
remove(String mid)
|
String |
remove(String mid,
boolean transactional)
Removes the message id map entry for this id. |
void |
removeExpiredIDMaps()
|
void |
removeExpiredIDMaps(Timestamp timeStamp)
Deletes all IDMapper entries, where the persist duration has already expired. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MessageIDMapper getInstance()
MessageIDMapper
public String getMappedId(String mid)
mid - the message id.
public MessageKey getMappedKey(MessageKey mkey)
mid - the message key.
public String remove(String mid,
boolean transactional)
mid - the messasge id for which to remove the map.
public String remove(String mid)
public void createIDMap(String mid1,
String mid2,
long archiveAfter)
throws UtilException
UtilException
public void createIDMap(String mid1,
String mid2,
long archiveAfter,
boolean transactional)
throws UtilException
mid1 - the first message id.mid2 - the second message id.archiveAfter - a point in time represented in milliseconds as per the java standard after which this message
id mapping will no longer be required and can be archived.transactional - specifies if the IDMap entry should be written in an existing transactional context
MessagingException - if one of the ids already exists in the database.
UtilException
public void createIDMap(MessageKey mkey1,
MessageKey mkey2,
long archiveAfter,
boolean callPMIAgent,
boolean transactional)
throws UtilException
mkey1 - the first message key.mkey2 - the second message key.archiveAfter - a point in time represented in milliseconds as per the java standard after which this message
id mapping will no longer be required and can be archived.transactional - specifies if the IDMap entry should be created as part or a transactional contextcallPMIAgent - specifies if the IDMapping PMI agent should be called
MessagingException - if one of the ids already exists in the database.
UtilExceptionpublic void removeExpiredIDMaps(Timestamp timeStamp)
public void removeExpiredIDMaps()
public LinkedList<String[]> readIDMapEntries()
|
If not dev, correct this wrong version label in perforce3227:3227\buildenvBE.Japro<CODELINE>src_macrospackjavadoc.properties | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||