Package deltix.qsrv.hf.blocks.l2
Interface BookWalker
-
- All Known Implementing Classes:
BookDumper
public interface BookWalker
Interface for passive order book traversal. SeeBook.walk(BookWalker)
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
BookWalker.Direction
Defines order book traversal order
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
onBookItem(Book book, boolean isAsk, int level, BookItem item)
Called for each order book itemboolean
onWalkFinished(Book book)
Called at the end of order book traversal for specific exchange and contractboolean
onWalkStarted(Book book)
Called at the beginning of order book traversal for specific exchange and contract
-
-
-
Method Detail
-
onWalkStarted
boolean onWalkStarted(Book book)
Called at the beginning of order book traversal for specific exchange and contract- Returns:
- false to interrupt order book traversal
-
onBookItem
boolean onBookItem(Book book, boolean isAsk, int level, BookItem item)
Called for each order book item- Returns:
- false to interrupt order book traversal
-
onWalkFinished
boolean onWalkFinished(Book book)
Called at the end of order book traversal for specific exchange and contract- Returns:
- false to interrupt order book traversal
-
-