neuray API Programmer's Manual

mi::bridge::IServer_transaction_callback Class Reference

[Bridge server]

Description

Abstract interface for callbacks for transaction commit or abort events.

See also:

mi::bridge::IServer_transaction::add_transaction_callback(), mi::bridge::IServer_transaction::remove_transaction_callback()

Public Member Functions

virtual void transaction_aborted_callback( Sint32 error_code, const char* message) =0
This method is called when the Bridge transaction has been aborted. More...
virtual void transaction_committed_callback() =0
This method is called when the Bridge transaction has been successfully committed. More...

Member Functions

virtual void mi::​bridge::​IServer_transaction_callback::transaction_aborted_callback( Sint32 error_code, const char* message) [pure virtual]

This method is called when the Bridge transaction has been aborted. Any changes mirrored via the Bridge transaction have not been committed to the server-side database.

Parameters

error_code
  • 0: The transaction was aborted by request of the client.
  • -1: The transaction was canceled because of a connection error.
  • <= -2: The transaction was canceled because of an unspecified error.
message
A short explanation of the error.
virtual void mi::​bridge::​IServer_transaction_callback::transaction_committed_callback() [pure virtual]

This method is called when the Bridge transaction has been successfully committed. At this point any changes mirrored via the Bridge transaction have been committed to the server-side database.