Class QldbDriver
Represents a factory for accessing sessions to a specific ledger within QLDB. This class or PooledQldbDriver should be the main entry points to any interaction with QLDB. GetSession() will create a Amazon.QLDB.Driver.QldbSession to the specified ledger within QLDB as a communication channel. Any sessions acquired should be cleaned up with Amazon.QLDB.Driver.QldbSession.Dispose to free up resources.
This factory does not attempt to re-use or manage sessions in any way. It is recommended to use PooledQldbDriver for both less resource usage and lower latency.
Inheritance
Namespace: Amazon.QLDB.Driver
Assembly: Amazon.QLDB.Driver.dll
Syntax
public class QldbDriver : object, IQldbDriver, IDisposable
Methods
| Improve this Doc View SourceBuilder()
Retrieve a builder object for creating a QldbDriver.
Declaration
public static QldbDriver.QldbDriverBuilder Builder()
Returns
Type | Description |
---|---|
QldbDriver.QldbDriverBuilder | The builder object for creating a QldbDriver. |
Dispose()
Close the session.
Declaration
public void Dispose()
GetSession()
Create and return a newly instantiated IQldbSession object.
This will implicitly start a new session with QLDB.
Declaration
public IQldbSession GetSession()
Returns
Type | Description |
---|---|
IQldbSession | The newly active IQldbSession object. |