Classes Files

com::wombat::mamda::MamdaOrderImbalanceHandler

More…

Public Functions

  Name
void onOrderImbalance(MamdaSubscription subscription, MamdaOrderImbalanceListener listener, final MamaMsg msg, MamdaOrderImbalanceRecap imbalance, MamdaOrderImbalanceUpdate update)
void onNoOrderImbalance(MamdaSubscription subscription, MamdaOrderImbalanceListener listener, final MamaMsg msg, MamdaOrderImbalanceRecap imbalance, MamdaOrderImbalanceUpdate update)
void onOrderImbalanceRecap(MamdaSubscription subscription, MamdaOrderImbalanceListener listener, final MamaMsg msg, MamdaOrderImbalanceRecap imbalance)

Detailed Description

class com::wombat::mamda::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 Documentation

function onOrderImbalance

void onOrderImbalance(
    MamdaSubscription subscription,
    MamdaOrderImbalanceListener listener,
    final MamaMsg msg,
    MamdaOrderImbalanceRecap imbalance,
    MamdaOrderImbalanceUpdate update
)

Parameters:

  • subscription The subscription which received this update.
  • listener The listener which invoked this callback.
  • msg The MamaMsg that triggered this invocation.
  • imbalance Provides access to imbalance details.
  • update Provides access to update details.

Method invoked when a order imbalance is reported.

function onNoOrderImbalance

void onNoOrderImbalance(
    MamdaSubscription subscription,
    MamdaOrderImbalanceListener listener,
    final MamaMsg msg,
    MamdaOrderImbalanceRecap imbalance,
    MamdaOrderImbalanceUpdate update
)

Parameters:

  • subscription The subscription which received this update.
  • listener The listener which invoked this callback.
  • msg The MamaMsg that triggered this invocation.
  • imbalance Provides access to imbalance details.
  • update Provides access to update details.

Method invoked when a no order imbalance is reported.

function onOrderImbalanceRecap

void onOrderImbalanceRecap(
    MamdaSubscription subscription,
    MamdaOrderImbalanceListener listener,
    final MamaMsg msg,
    MamdaOrderImbalanceRecap imbalance
)

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

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

listenerThe listener which invoked this callback.

msgThe MamaMsg that triggered this invocation.

imbalanceProvides access to imbalance details.


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