jBPM :: Distribution 6.2.0-SNAPSHOT

org.jbpm.runtime.manager.impl.mapper
Class InMemoryMapper

java.lang.Object
  extended by org.jbpm.runtime.manager.impl.mapper.InMemoryMapper
All Implemented Interfaces:
org.kie.internal.runtime.manager.Mapper

public class InMemoryMapper
extends Object
implements org.kie.internal.runtime.manager.Mapper

An in-memory implementation of the context to KieSession identifier mapping. Used only when the RuntimeManager is used without persistence.


Constructor Summary
InMemoryMapper()
           
 
Method Summary
 Object findContextId(Long ksessionId, String ownerId)
           
 Long findMapping(Context<?> context, String ownerId)
           
 boolean hasContext(Long ksessionId)
           
 void removeMapping(Context<?> context, String ownerId)
           
 void saveMapping(Context<?> context, Long ksessionId, String ownerId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryMapper

public InMemoryMapper()
Method Detail

saveMapping

public void saveMapping(Context<?> context,
                        Long ksessionId,
                        String ownerId)
Specified by:
saveMapping in interface org.kie.internal.runtime.manager.Mapper

findMapping

public Long findMapping(Context<?> context,
                        String ownerId)
Specified by:
findMapping in interface org.kie.internal.runtime.manager.Mapper

removeMapping

public void removeMapping(Context<?> context,
                          String ownerId)
Specified by:
removeMapping in interface org.kie.internal.runtime.manager.Mapper

findContextId

public Object findContextId(Long ksessionId,
                            String ownerId)
Specified by:
findContextId in interface org.kie.internal.runtime.manager.Mapper

hasContext

public boolean hasContext(Long ksessionId)

jBPM :: Distribution 6.2.0-SNAPSHOT

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.