MamdaOrderBookCheckerHandler is an interface for applications that want to handle the results of the MamdaOrderBookChecker. Callback interfaces are provided for correct and erroneous checks.
Name | |
---|---|
void | onSuccess(MamdaOrderBookCheckType checkType) Method invoked when a successful check is completed. |
void | onInconclusive(MamdaOrderBookCheckType checkType, string reason) 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. |
void | onFailure(MamdaOrderBookCheckType checkType, string reason, MamaMsg msg, MamdaOrderBook realTimeBook, MamdaOrderBook checkBook) 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. |
void onSuccess(
MamdaOrderBookCheckType checkType
)
Method invoked when a successful check is completed.
Parameters:
void onInconclusive(
MamdaOrderBookCheckType checkType,
string reason
)
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.
Parameters:
void onFailure(
MamdaOrderBookCheckType checkType,
string reason,
MamaMsg msg,
MamdaOrderBook realTimeBook,
MamdaOrderBook checkBook
)
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.
Parameters:
Updated on 2023-03-31 at 15:30:17 +0100