Classes Files

com::wombat::mamda::orderbook::MamdaOrderBookCheckerHandler

More…

Public Functions

  Name
void onSuccess(MamdaOrderBookCheckType checkType, final MamdaOrderBook realTimeBook)
void onInconclusive(MamdaOrderBookCheckType checkType, final String reason)
void onFailure(MamdaOrderBookCheckType checkType, final String reason, final MamaMsg msg, final MamdaOrderBook realTimeBook, final MamdaOrderBook checkBook)

Detailed Description

class com::wombat::mamda::orderbook::MamdaOrderBookCheckerHandler;

MamdaOrderBookCheckerHandler is an interface for applications that want to handle the results of the MamdaOrderBookChecker. Callback interfaces are provided for correct and erroneous checks.

Public Functions Documentation

function onSuccess

void onSuccess(
    MamdaOrderBookCheckType checkType,
    final MamdaOrderBook realTimeBook
)

Parameters:

  • checkType Types of MamdaOrderBookChecks.

Method invoked when a successful check is completed.

function onInconclusive

void onInconclusive(
    MamdaOrderBookCheckType checkType,
    final String reason
)

Parameters:

  • checkType Types of MamdaOrderBookChecks.
  • reason Reason for the sequence numbers mismatch.

Method invoked when check is completed inconclusively. An attempt to check the order book may be inconclusive if the order book sequence numbers do not match up.

function onFailure

void onFailure(
    MamdaOrderBookCheckType checkType,
    final String reason,
    final MamaMsg msg,
    final MamdaOrderBook realTimeBook,
    final MamdaOrderBook checkBook
)

Parameters:

  • checkType Types of MamdaOrderBookChecks.
  • reason Reason for the failure.
  • msg The MamaMsg which caused failure.
  • realTimeBook The Real Time Order Book which is compared against.
  • checkBook The Aggregated Book which is compared.

Method invoked when a failed check is completed. The message provided, if non-NULL, is the one received for the snapshot or delta, depending upon the value of checkType.


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