default boolean processSnapshot()

in orderbook-core/src/main/java/com/epam/deltix/orderbook/core/impl/L3Processor.java [72:88]


    default boolean processSnapshot(final PackageHeaderInfo msg) {
        final ObjectList<BaseEntryInfo> entries = msg.getEntries();
        final int n = entries.size();
        // skip statistic entries try to establish if we are dealing with order book reset or normal snapshot
        for (int i = 0; i < n; i++) {
            final BaseEntryInfo entry = entries.get(i);
            if (entry instanceof L3EntryNewInfo) {
                return processL3Snapshot(msg);
            } else if (entry instanceof BookResetEntryInfo) {
                final BookResetEntryInfo resetEntry = (BookResetEntryInfo) entry;
                if (resetEntry.getModelType() == getQuoteLevels()) {
                    return processBookResetEntry(msg, resetEntry);
                }
            }
        }
        return false;
    }