Class TSafeParserPool

Object
gudusoft.gsqlparser.TParserPool
gudusoft.gsqlparser.TSafeParserPool

public class TSafeParserPool extends TParserPool
Thread-safe parser pool that clears parser references from parse trees. This eliminates any potential issues with shared parser references when parse trees are used concurrently after parsing. This pool ensures complete isolation of parse trees from parser instances, making them safe to use in any concurrent scenario.
  • Constructor Details

    • TSafeParserPool

      public TSafeParserPool()
      Creates a safe parser pool with default size
    • TSafeParserPool

      public TSafeParserPool(int poolSize)
      Creates a safe parser pool with specified size
      Parameters:
      poolSize - Size of the pool for each vendor
  • Method Details