NVIDIA Iray API Home  Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::bridge::IServer_transaction_callback Class Referenceabstract

Abstract interface for callbacks for transaction commit or abort events. More...

Inheritance diagram for mi::bridge::IServer_transaction_callback:
Inheritance graph
[legend]

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0x7796c406, 0xff8f, 0x423d, 0x8f, 0x53, 0x1a, 0x66, 0x50, 0xcf, 0x83, 0x86 >
typedef Interface_declare< id1,
id2, id3, id4, id5, id6, id7,
id8, id9, id10, id11,
IInterface
Self
  Own type. More...
 
typedef Uuid_t< id1, id2, id3,
id4, id5, id6, id7, id8, id9,
id10, id11 > 
IID
  Declares the interface ID (IID) of this interface. More...
 
- Static Public Member Functions inherited from mi::base::Interface_declare< 0x7796c406, 0xff8f, 0x423d, 0x8f, 0x53, 0x1a, 0x66, 0x50, 0xcf, 0x83, 0x86 >
static bool  compare_iid (const Uuid &iid)
  Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
 

Detailed 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()

Member Function Documentation

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.