Interface BlockTradeListenerFactory

  • public interface BlockTradeListenerFactory

    A BlockTradeListenerFactory instance is responsible for providing a BlockTradeListener whenever a Block Trade is initiated by the client.

    Example Usage:

     public class MyBlockTradeListenerFactory implements BlockTradeListenerFactory
                    public BlockTradeListener createBlockTradeListener(BlockTrade trade) throws TradeException
                            return new MyBlockTradeListener();
    • Method Detail

      • createBlockTradeListener

        BlockTradeListener createBlockTradeListener​(BlockTrade trade)
        Returns an instance of BlockTradeListener that will be notified of incoming client side events regarding block trades.
        trade - The block trade for which the listener will receive event notifications for.
        The listener that will be called upon to handle client events.