Wombat::MamdaOrderImbalanceHandler

Wombat::MamdaOrderImbalanceHandler

MamdaOrderImbalanceHandler is an interface for applications that want to have an easy way to handle order imbalance updates. The interface defines callback methods for different types of order-imbalance events:

Public Functions

  Name
void onOrderImbalance(MamdaSubscription subscription, MamdaOrderImbalanceListener listener, MamaMsg msg)
Method invoked when a order imbalance is reported.
void onNoOrderImbalance(MamdaSubscription subscription, MamdaOrderImbalanceListener listener, MamaMsg msg)
Method invoked when a no order imbalance is reported.
void onOrderImbalanceRecap(MamdaSubscription subscription, MamdaOrderImbalanceListener listener, MamaMsg msg)
Method invoked when the current order imbalance information is available. The reason for the invocation may be any of the following:

Public Functions Documentation

function onOrderImbalance

void onOrderImbalance(
    MamdaSubscription subscription,
    MamdaOrderImbalanceListener listener,
    MamaMsg msg
)

Method invoked when a order imbalance is reported.

Parameters:

  • subscription The subscription which received this update.
  • listener The listener which invoked this callback.
  • msg The MamaMsg that triggered this invocation.

function onNoOrderImbalance

void onNoOrderImbalance(
    MamdaSubscription subscription,
    MamdaOrderImbalanceListener listener,
    MamaMsg msg
)

Method invoked when a no order imbalance is reported.

Parameters:

  • subscription The subscription which received this update.
  • listener The listener which invoked this callback.
  • msg The MamaMsg that triggered this invocation.

function onOrderImbalanceRecap

void onOrderImbalanceRecap(
    MamdaSubscription subscription,
    MamdaOrderImbalanceListener listener,
    MamaMsg msg
)

Method invoked when the current order imbalance information is available. The reason for the invocation may be any of the following:

Parameters:

  • subscription The subscription which received this update.
  • listener The listener which invoked this callback.
  • msg The MamaMsg that triggered this invocation.

  • Initial image.
  • Recap update (e.g., after server fault tolerant event or data quality event.)
  • After stale status removed.

Updated on 2023-03-31 at 15:30:12 +0100