Package ghidra.features.bsim.query
Class BSimDBConnectTaskManager
java.lang.Object
ghidra.features.bsim.query.BSimDBConnectTaskManager
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 ClassesModifier and TypeClassDescriptionstatic interfaceDB connection supplier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection(BSimDBConnectTaskManager.DBConnectionSupplier connectionSupplier) Initiate a DB connection.
-
Constructor Details
-
BSimDBConnectTaskManager
-
-
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 occurredCancelledSQLException- if task was cancelled (password entry cancelled)
-