Class UInt64LinksTransactionsLayer
- Namespace
- Platform.Data.Doublets
- Assembly
- Platform.Data.Doublets.dll
Represents the int 64 links transactions layer.
public class UInt64LinksTransactionsLayer : LinksDisposableDecoratorBase<ulong>, ILinks<ulong>, ILinks<ulong, LinksConstants<ulong>>, IDisposable
- Inheritance
-
UInt64LinksTransactionsLayer
- Implements
- Inherited Members
- Extension Methods
Constructors
UInt64LinksTransactionsLayer(ILinks<ulong>, string)
Initializes a new UInt64LinksTransactionsLayer instance.
public UInt64LinksTransactionsLayer(ILinks<ulong> links, string logAddress)
Parameters
Exceptions
- ArgumentNullException
- NotSupportedException
Database is damaged, autorecovery is not supported yet.
Fields
DefaultPushDelay
The from seconds.
public static readonly TimeSpan DefaultPushDelay
Field Value
Methods
BeginTransaction()
Begins the transaction.
public UInt64LinksTransactionsLayer.Transaction BeginTransaction()
Returns
- UInt64LinksTransactionsLayer.Transaction
The transaction
Create(IList<ulong>?, WriteHandler<ulong>?)
Creates the substitution.
public override ulong Create(IList<ulong>? substitution, WriteHandler<ulong>? handler)
Parameters
substitutionIList<ulong>The substitution.
handlerWriteHandler<ulong>Optional callback; null continues without invoking a callback.
Returns
- ulong
The created link index.
Delete(IList<ulong>?, WriteHandler<ulong>?)
Deletes the substitution.
public override ulong Delete(IList<ulong>? restriction, WriteHandler<ulong>? handler)
Parameters
restrictionIList<ulong>The substitution.
handlerWriteHandler<ulong>Optional callback; null continues without invoking a callback.
Returns
Dispose(bool, bool)
Disposes the manual.
protected override void Dispose(bool manual, bool wasDisposed)
Parameters
GetLinkValue(ulong)
Gets the link value using the specified link.
public IList<ulong> GetLinkValue(ulong link)
Parameters
linkulongThe link.
Returns
Update(IList<ulong>?, IList<ulong>?, WriteHandler<ulong>?)
Updates the substitution.
public override ulong Update(IList<ulong>? restriction, IList<ulong>? substitution, WriteHandler<ulong>? handler)
Parameters
restrictionIList<ulong>The substitution.
substitutionIList<ulong>The substitution.
handlerWriteHandler<ulong>Optional callback; null continues without invoking a callback.
Returns
- ulong
The link index.
See Also
LinksDisposableDecoratorBase<TLinkAddress>