Transaction

Wrapper for transactional data management.

Constructors

this
this()

Creates a new transactional data manager.

this
this(void delegate(Snapshot!T) onCommit, void delegate(Snapshot!T) onSuccess, bool delegate(Snapshot!T, Throwable, size_t) onFailure)

Creates a new transactional data manager.

Members

Functions

opCall
void opCall(Snapshot!T snapshot)

Operator overload for calling the transaction and committing it.

Properties

commit
void delegate(Snapshot!T) commit [@property setter]

Sets the delegate called when comitting.

failure
bool delegate(Snapshot!T, Throwable, size_t) failure [@property setter]

Sets the delegate called when a commit failed.

success
void delegate(Snapshot!T) success [@property setter]

Sets the delegate called when a commit succeeded.

Meta