Package ghidra.features.bsim.query
Class BSimDBConnectTaskCoordinator
java.lang.Object
ghidra.features.bsim.query.BSimDBConnectTaskCoordinator
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 cancelation to be propogated to the
other tasks(s).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
DB connection supplier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection
(BSimDBConnectTaskCoordinator.DBConnectionSupplier connectionSupplier) Initiate a DB connection.
-
Constructor Details
-
BSimDBConnectTaskCoordinator
-
-
Method Details
-
getConnection
public Connection getConnection(BSimDBConnectTaskCoordinator.DBConnectionSupplier connectionSupplier) throws SQLException Initiate a DB connection.- Parameters:
connectionSupplier
- DB connection supplier- Returns:
- DB connection
- Throws:
SQLException
- if a database connection error occuredCancelledSQLException
- if task was cancelled (password entry cancelled)
-