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
ILinks<ulong, LinksConstants<ulong>>
Inherited Members
Extension Methods

Constructors

Initializes a new UInt64LinksTransactionsLayer instance.

public UInt64LinksTransactionsLayer(ILinks<ulong> links, string logAddress)

Parameters

links ILinks<ulong>

A links.

logAddress string

A log address.

Exceptions

ArgumentNullException

NotSupportedException

Database is damaged, autorecovery is not supported yet.

Fields

DefaultPushDelay

The from seconds.

public static readonly TimeSpan DefaultPushDelay

Field Value

TimeSpan

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

substitution IList<ulong>

The substitution.

handler WriteHandler<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

restriction IList<ulong>

The substitution.

handler WriteHandler<ulong>

Optional callback; null continues without invoking a callback.

Returns

ulong

Dispose(bool, bool)

Disposes the manual.

protected override void Dispose(bool manual, bool wasDisposed)

Parameters

manual bool

The manual.

wasDisposed bool

The was disposed.

GetLinkValue(ulong)

Gets the link value using the specified link.

public IList<ulong> GetLinkValue(ulong link)

Parameters

link ulong

The link.

Returns

IList<ulong>

A list of TLinkAddress

Update(IList<ulong>?, IList<ulong>?, WriteHandler<ulong>?)

Updates the substitution.

public override ulong Update(IList<ulong>? restriction, IList<ulong>? substitution, WriteHandler<ulong>? handler)

Parameters

restriction IList<ulong>

The substitution.

substitution IList<ulong>

The substitution.

handler WriteHandler<ulong>

Optional callback; null continues without invoking a callback.

Returns

ulong

The link index.

See Also