Interface OrderSubmissionListenerFactory<T extends OrderStrategy>

Type Parameters:
T - extends an OrderStrategy

@Deprecated public interface OrderSubmissionListenerFactory<T extends OrderStrategy>
Deprecated.

An OrderSubmissionListenerFactory instance is responsible for providing an OrderSubmissionListener whenever a Limit Order has been initiated from the client, of that specified OrderStrategy

Example Usage:

 public class MyIfDoneOrderListenerFactory implements OrderSubmissionListenerFactory<IfDoneStrategy>
 {
      Override
          public OrderSubmissionListener<IfDoneStrategy> createOrderSubmissionListener(IfDoneStrategy strategy)
      {
                 return new MyIfDoneSubmissionListener();
      }
  }
 
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Returns an instance of OrderSubmissionListener for the specified OrderStrategy that will be notified of incoming client side events.
  • Method Details

    • createOrderSubmissionListener

      OrderSubmissionListener<T> createOrderSubmissionListener(T strategy)
      Deprecated.
      Returns an instance of OrderSubmissionListener for the specified OrderStrategy that will be notified of incoming client side events.
      Parameters:
      strategy - The OrderStrategy that was just initiated
      Returns:
      The listener that will be called upon to handle client events.