Package ghidra.features.bsim.query

# Class BSimDBConnectTaskManager

java.lang.Object
ghidra.features.bsim.query.BSimDBConnectTaskManager

public class BSimDBConnectTaskManager extends Object
Provides the ability to synchronize concurrent connection task instances within the same thread. This can occur within the swing thread due to the presence of a modal task dialog event queue. It also allows password cancellation to be propagated to the other tasks(s).

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static interface`
  `BSimDBConnectTaskManager.DBConnectionSupplier`
  DB connection supplier

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BSimDBConnectTaskManager(BSimServerInfo serverInfo)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Connection`
  `getConnection(BSimDBConnectTaskManager.DBConnectionSupplier connectionSupplier)`
  Initiate a DB connection.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### BSimDBConnectTaskManager

    public BSimDBConnectTaskManager(BSimServerInfo serverInfo)

- ## Method Details

  - ### getConnection

    public Connection getConnection(BSimDBConnectTaskManager.DBConnectionSupplier connectionSupplier) throws SQLException
    Initiate a DB connection.
    Parameters:
      `connectionSupplier` - DB connection supplier
    Returns:
      DB connection
    Throws:
      `SQLException` - if a database connection error occurred
      `CancelledSQLException` - if task was cancelled (password entry cancelled)