|
KIE Internal 6.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Mapper
Mapper responsibility is to provide correlation between context
identifier and ksession identifier to effectively keep track of what context
has been mapped to given ksession.
Mapper covers entire life cycle of the mapping which consists of:
| Method Summary | |
|---|---|
Object |
findContextId(Integer ksessionId,
String ownerId)
Finds context by ksession identifier |
Integer |
findMapping(org.kie.api.runtime.manager.Context<?> context,
String ownerId)
Finds ksession for given context |
void |
removeMapping(org.kie.api.runtime.manager.Context<?> context,
String ownerId)
Remove permanently context to ksession id mapping |
void |
saveMapping(org.kie.api.runtime.manager.Context<?> context,
Integer ksessionId,
String ownerId)
Stores context to ksession id mapping |
| Method Detail |
|---|
void saveMapping(org.kie.api.runtime.manager.Context<?> context,
Integer ksessionId,
String ownerId)
context - instance of the context to be storedksessionId - actual identifier of ksession
Integer findMapping(org.kie.api.runtime.manager.Context<?> context,
String ownerId)
context - instance of the context
Object findContextId(Integer ksessionId,
String ownerId)
ksessionId - identifier of ksession
void removeMapping(org.kie.api.runtime.manager.Context<?> context,
String ownerId)
context - context instance that mapping shall be removed for
|
KIE Internal 6.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||