Class BookDumper

  • All Implemented Interfaces:
    BookWalker

    public class BookDumper
    extends java.lang.Object
    implements BookWalker
    • 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>
      T
      dump​(Book book, T to)  
      boolean onBookItem​(Book book, boolean isAsk, int level, BookItem item)
      Called for each order book item
      boolean onWalkFinished​(Book book)
      Called at the end of order book traversal for specific exchange and contract
      boolean onWalkStarted​(Book book)
      Called at the beginning of order book traversal for specific exchange and contract
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BookDumper

        public BookDumper()
      • BookDumper

        public BookDumper​(java.lang.Appendable to)
    • 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 interface BookWalker
        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 interface BookWalker
        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 interface BookWalker
        Returns:
        false to interrupt order book traversal