com.teraspaces.qwfix.ordermanager
Interface FIXSessionOrderManagerSimplifiedListener


public interface FIXSessionOrderManagerSimplifiedListener

The listener interface for receiving simplified events. The class that is interested in processing a FIXSessionOrderManagerSimplified event implements this interface, and the object created with that class is registered with a component using the component's addSimplifiedListener method. When the simplified event occurs, that object's appropriate method is invoked.

See Also:
FIXSessionOrderManager.addSimplifiedListener(FIXSessionOrderManagerSimplifiedListener), FIXSessionOrderManager.removeSimplifiedListener(FIXSessionOrderManagerSimplifiedListener)

Method Summary
 void executionAdded(FIXRegularOrder order, FIXMessage message, int statusChangeFlags, FIXEngineMessageHandlerStatus status)
          Occurs when an execution message is added to a FIXRegularOrder.
 void orderUpdated(FIXOrder order, int statusChangeFlags, FIXEngineMessageHandlerStatus status)
          Occurs when the order is updated.
 

Method Detail

executionAdded

void executionAdded(FIXRegularOrder order,
                    FIXMessage message,
                    int statusChangeFlags,
                    FIXEngineMessageHandlerStatus status)
Occurs when an execution message is added to a FIXRegularOrder.

Depending on the type of the execution, some other events may be triggered before this event is triggered during the process (such as ExecutionNewAdded etc).

orderUpdated(FIXOrder, int, FIXEngineMessageHandlerStatus) event is guaranteed to be triggered after this event.

Parameters:
order - the order
message - the message
statusChangeFlags - the status change flags
status - the FIX engine status

orderUpdated

void orderUpdated(FIXOrder order,
                  int statusChangeFlags,
                  FIXEngineMessageHandlerStatus status)
Occurs when the order is updated.

This event is the most simplified event in order manager. This event, along with FIXSessionOrderManagerCommonListener.orderAdded(FIXOrder, FIXEngineMessageHandlerStatus) event, covers every possible events of an order. The event will be fired after cancel order or replace order is added, or execution is added, or cancel reject is added or event session message reject regarding this order is added.

If the order is a FIXCrossOrder, the "Cross Cancel" or "Cross Replace" will trigger OrderUpdated of the cross. The OrderUpdated event of each single side will not be triggered. However, when a single side get a new execution or cancel reject, the orderUpdated of the affected side will be triggered, the OrderUpdated event of the cross will not be triggered. In summary, for cross order, each time the orderUpdated event of either the cross order, or the single side of the cross order is triggered, but not both.

This event will not be triggered after a "Status Request" is added to the order. However, it will be triggered after a "Status Execution" is added.

Parameters:
order - the order
statusChangeFlags - the status change flags
status - the status