Class InMemoryMapper

  • All Implemented Interfaces:
    org.kie.internal.runtime.manager.Mapper

    public class InMemoryMapper
    extends InternalMapper
    An in-memory implementation of the context to KieSession identifier mapping. Used only when the RuntimeManager is used without persistence.
    • Constructor Detail

      • InMemoryMapper

        public InMemoryMapper()
    • Method Detail

      • saveMapping

        public void saveMapping​(org.kie.api.runtime.manager.Context<?> context,
                                Long ksessionId,
                                String ownerId)
      • findMapping

        public Long findMapping​(org.kie.api.runtime.manager.Context<?> context,
                                String ownerId)
      • removeMapping

        public void removeMapping​(org.kie.api.runtime.manager.Context<?> context,
                                  String ownerId)
      • findContextId

        public Object findContextId​(Long ksessionId,
                                    String ownerId)
      • hasContext

        public boolean hasContext​(Long ksessionId)