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
 {
        Override
                public BlockTradeListener createBlockTradeListener(BlockTrade trade) throws TradeException
        {
                        return new MyBlockTradeListener();
        }
 }
 
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns an instance of BlockTradeListener that will be notified of incoming client side events regarding block trades.
  • Method Details

    • createBlockTradeListener

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