Package org.kie.api.runtime

# Interface RuntimeSession

All Superinterfaces:
  `CommandExecutor`

All Known Subinterfaces:
  `KieRuntime`, `KieSession`, `StatelessKieSession`

public interface RuntimeSession extends CommandExecutor

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Map<String,Channel>`
  `getChannels()`
  `Globals`
  `getGlobals()`
  `KieBase`
  `getKieBase()`
  `void`
  `registerChannel(String name, Channel channel)`
  Registers a channel with the given name
  `void`
  `setGlobal(String identifier, Object value)`
  Sets a global value on the globals store
  `void`
  `unregisterChannel(String name)`
  Unregisters the channel with the given name

  ### Methods inherited from interface org.kie.api.runtime.CommandExecutor

  `execute`

- ## Method Details

  - ### getGlobals

    Globals getGlobals()
    Returns:
      the Globals store

  - ### setGlobal

    void setGlobal(String identifier, Object value)
    Sets a global value on the globals store
    Parameters:
      `identifier` - the global identifier
      `value` - the value assigned to the global identifier

  - ### registerChannel

    void registerChannel(String name, Channel channel)
    Registers a channel with the given name
    Parameters:
      `name` - the name of the channel
      `channel` - the channel instance. It has to be thread safe.

  - ### unregisterChannel

    void unregisterChannel(String name)
    Unregisters the channel with the given name
    Parameters:
      `name` -

  - ### getChannels

    Map<String,Channel> getChannels()
    Returns:
      a map with all registered channels.

  - ### getKieBase

    KieBase getKieBase()
    Returns:
      the KieBase reference from which this stateless session was created.