public void setBookUpdate(final MarketDoBookEntry entry,
final TimeValue time) {
assert entry != null && time != null;
final MarketDoBook book = loadBook();
final UniBookResult result = book.setEntry(entry);
switch (result) {
case TOP:
eventAdd(NEW_BOOK_TOP);
// continue
case NORMAL:
eventAdd(NEW_BOOK_UPDATE);
break;
default:
eventAdd(NEW_BOOK_ERROR);
final MarketInstrument inst = get(MarketField.INSTRUMENT);
final TextValue id = inst.get(InstrumentField.ID);
final TextValue comment = inst.get(InstrumentField.DESCRIPTION);
log.error("instrument : {} : {}", id, comment);
log.error("result : {} ; entry : {} ;", result, entry);
return;
}
book.setTime(time);
updateMarket(time);
}