# Uses of Interface
org.kie.api.runtime.KieSession

Packages that use KieSession
Package
Description
org.kie.api
Base KIE API classes.
org.kie.api.marshalling
Marshalling classes are used to marshall and unmarshal StatefulKieSessions
org.kie.api.persistence.jpa
org.kie.api.runtime
The runtime engine classes, including KieSession and StatelessKieSession.

- ## Uses of KieSession in org.kie.api

  Methods in org.kie.api that return KieSession
  Modifier and Type
  Method
  Description
  `KieSession`
  KieBase.`newKieSession()`
  Creates a new `KieSession` using the default session configuration.
  `KieSession`
  KieBase.`newKieSession(KieSessionConfiguration conf, Environment environment)`
  Creates a new `KieSession` using the given session configuration and/or environment.
  Methods in org.kie.api that return types with arguments of type KieSession
  Modifier and Type
  Method
  Description
  `Collection<? extends KieSession>`
  KieBase.`getKieSessions()`
  Returns a collection of the `KieSession`s that exist in this `KieBase`.

- ## Uses of KieSession in org.kie.api.marshalling

  Methods in org.kie.api.marshalling that return KieSession
  Modifier and Type
  Method
  Description
  `KieSession`
  Marshaller.`unmarshall(InputStream stream)`
  Creates KieSession using default KieSessionConfiguration and Environment.
  `KieSession`
  Marshaller.`unmarshall(InputStream stream, KieSessionConfiguration config, Environment environment)`
  Creates KieSession using the given KieSessionConfiguration and Environment.
  Methods in org.kie.api.marshalling with parameters of type KieSession
  Modifier and Type
  Method
  Description
  `void`
  Marshaller.`marshall(OutputStream stream, KieSession ksession)`
  Marshalls the given KieSession into the provided OutputStream
  `void`
  Marshaller.`unmarshall(InputStream stream, KieSession ksession)`
  Unmarshall the stream into the KieSession.

- ## Uses of KieSession in org.kie.api.persistence.jpa

  Methods in org.kie.api.persistence.jpa that return KieSession
  Modifier and Type
  Method
  Description
  `KieSession`
  KieStoreServices.`loadKieSession(int id, KieBase kbase, KieSessionConfiguration configuration, Environment environment)`
  Deprecated.
  `KieSession`
  KieStoreServices.`loadKieSession(Long id, KieBase kbase, KieSessionConfiguration configuration, Environment environment)`
  `KieSession`
  KieStoreServices.`newKieSession(KieBase kbase, KieSessionConfiguration configuration, Environment environment)`

- ## Uses of KieSession in org.kie.api.runtime

  Methods in org.kie.api.runtime that return KieSession
  Modifier and Type
  Method
  Description
  `KieSession`
  KieContainer.`newKieSession()`
  Creates the default KieSession for this KieContainer
  `KieSession`
  KieContainer.`newKieSession(String kSessionName)`
  Creates the KieSession with the given name for this KieContainer
  `KieSession`
  KieContainer.`newKieSession(String kSessionName, Environment environment)`
  Creates the KieSession with the given name for this KieContainer using the given Environment
  `KieSession`
  KieContainer.`newKieSession(String kSessionName, Environment environment, KieSessionConfiguration conf)`
  Creates the KieSession with the given name for this KieContainer using the given Environment and configuration
  `KieSession`
  KieContainer.`newKieSession(String kSessionName, KieSessionConfiguration conf)`
  Creates the KieSession with the given name for this KieContainer with the given configuration
  `KieSession`
  KieContainer.`newKieSession(Environment environment)`
  Creates the default `KieSession` for this KieContainer using the given Environment
  `KieSession`
  KieContainer.`newKieSession(Environment environment, KieSessionConfiguration conf)`
  Creates the default KieSession for this KieContainer with the given configuration and Environment
  `KieSession`
  KieContainer.`newKieSession(KieSessionConfiguration conf)`
  Creates the default KieSession for this KieContainer with the given configuration
  `KieSession`
  KieContainerSessionsPool.`newKieSession(String kSessionName)`
  Obtain a `KieSession` with the given name from this pool.
  `KieSession`
  KieContainerSessionsPool.`newKieSession(String kSessionName, KieSessionConfiguration conf)`
  Obtain a `KieSession` with the given name and configuration from this pool.
  `KieSession`
  KieRuntimeBuilder.`newKieSession()`
  `KieSession`
  KieRuntimeBuilder.`newKieSession(String sessionName)`
  `default KieSession`
  KieRuntimeBuilder.`newKieSession(KieSessionConfiguration conf)`
  `KieSession`
  KieSessionsPool.`newKieSession()`
  Obtain a `KieSession` from this pool using the default session configuration.
  `KieSession`
  KieSessionsPool.`newKieSession(KieSessionConfiguration conf)`
  Obtain a `KieSession` from this pool using using the given session configuration.
  Methods in org.kie.api.runtime with parameters of type KieSession
  Modifier and Type
  Method
  Description
  `void`
  KieSession.AtomicAction.`execute(KieSession kieSession)`
  `RequestContext`
  RequestContext.`with(KieSession kieSession)`