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.Modifier and Type | Method and Description |
---|---|
Object |
findContextId(Integer ksessionId)
Finds context by ksession identifier
|
Integer |
findMapping(org.kie.api.runtime.manager.Context<?> context)
Finds ksession for given context
|
void |
removeMapping(org.kie.api.runtime.manager.Context<?> context)
Remove permanently context to ksession id mapping
|
void |
saveMapping(org.kie.api.runtime.manager.Context<?> context,
Integer ksessionId)
Stores context to ksession id mapping
|
void saveMapping(org.kie.api.runtime.manager.Context<?> context, Integer ksessionId)
context
- instance of the context to be storedksessionId
- actual identifier of ksessionInteger findMapping(org.kie.api.runtime.manager.Context<?> context)
context
- instance of the contextObject findContextId(Integer ksessionId)
ksessionId
- identifier of ksessionvoid removeMapping(org.kie.api.runtime.manager.Context<?> context)
context
- context instance that mapping shall be removed forCopyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.