Package deltix.qsrv.hf.blocks.l2
Class BookDumper
- java.lang.Object
-
- deltix.qsrv.hf.blocks.l2.BookDumper
-
- All Implemented Interfaces:
BookWalker
public class BookDumper extends java.lang.Object implements BookWalker
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface deltix.qsrv.hf.blocks.l2.BookWalker
BookWalker.Direction
-
-
Constructor Summary
Constructors Constructor Description BookDumper()
BookDumper(java.lang.Appendable to)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dump(Book book)
<T extends java.lang.Appendable>
Tdump(Book book, T to)
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
-
dump
public void dump(Book book)
-
dump
public <T extends java.lang.Appendable> T dump(Book book, T to)
-
onWalkStarted
public boolean onWalkStarted(Book book)
Description copied from interface:BookWalker
Called at the beginning of order book traversal for specific exchange and contract- Specified by:
onWalkStarted
in interfaceBookWalker
- Returns:
- false to interrupt order book traversal
-
onBookItem
public boolean onBookItem(Book book, boolean isAsk, int level, BookItem item)
Description copied from interface:BookWalker
Called for each order book item- Specified by:
onBookItem
in interfaceBookWalker
- Returns:
- false to interrupt order book traversal
-
onWalkFinished
public boolean onWalkFinished(Book book)
Description copied from interface:BookWalker
Called at the end of order book traversal for specific exchange and contract- Specified by:
onWalkFinished
in interfaceBookWalker
- Returns:
- false to interrupt order book traversal
-
-