Class BlockTradeSubmitTranslator

  • All Implemented Interfaces:
    java.util.function.Consumer<com.caplin.trading.TradeEvent>

    public class BlockTradeSubmitTranslator
    extends java.lang.Object
    implements java.util.function.Consumer<com.caplin.trading.TradeEvent>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(com.caplin.trading.TradeEvent event)
      Submits a BlockTradeSubmitEvent based on the side extracted from the trade event
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Constructor Detail

      • BlockTradeSubmitTranslator

        public BlockTradeSubmitTranslator​(BlockTradeListener listener)
        instantiates a BlockTradeSubmitTranslator
        Parameters:
        listener - the BlockTradeListener
    • Method Detail

      • accept

        public void accept​(com.caplin.trading.TradeEvent event)
        Submits a BlockTradeSubmitEvent based on the side extracted from the trade event
        Specified by:
        accept in interface java.util.function.Consumer<com.caplin.trading.TradeEvent>
        Parameters:
        event - the TradeEvent