##### Working with single thread

- getSingleThread()
  This method checks whether the current engine is single-threaded. The returned value is of Boolean type. If the current engine is single-threaded, it will return true, otherwise it will return false.
- setSingleThread(boolean single)
  This method can be set to run the engine with a single thread. It is especially used in an environment such as EJB, which only allows single thread when performing transactions.

Parameter

- single - Set to true if you want to use single-thread. Otherwise, the default multi-threaded engine will be used.