public abstract class AbstractFix44OrderMessageHandler extends AbstractFix44MessageHandler
Modifier | Constructor and Description |
---|---|
protected |
AbstractFix44OrderMessageHandler(AdapterType adapterType,
OrderExecutionService orderExecutionService,
OrderLookupService orderLookupService) |
Modifier and Type | Method and Description |
---|---|
protected abstract Fill |
createFill(ExecutionReport executionReport,
Order order) |
protected abstract OrderStatus |
createStatus(ExecutionReport executionReport,
Order order) |
protected abstract boolean |
discardReport(ExecutionReport executionReport) |
protected abstract java.lang.String |
getDefaultBroker() |
protected java.lang.String |
getStatusText(ExecutionReport executionReport)
This method can be overridden to provide a custom translation of status (error) codes
to human readable status (error) messages.
|
protected abstract void |
handleExternal(ExecutionReport executionReport) |
protected abstract void |
handleRestated(ExecutionReport executionReport,
Order order) |
protected abstract void |
handleUnknown(ExecutionReport executionReport) |
protected abstract boolean |
isOrderRejected(ExecutionReport executionReport) |
protected abstract boolean |
isOrderReplaced(ExecutionReport executionReport) |
protected abstract boolean |
isOrderRestated(ExecutionReport executionReport) |
void |
onMessage(BusinessMessageReject reject,
SessionID sessionID)
if BusinessMessageReject is used to reject an order, create REJECTED order status
|
void |
onMessage(ExecutionReport executionReport,
SessionID sessionID) |
void |
onMessage(OrderCancelReject reject,
SessionID sessionID) |
protected AbstractFix44OrderMessageHandler(AdapterType adapterType, OrderExecutionService orderExecutionService, OrderLookupService orderLookupService)
protected abstract boolean discardReport(ExecutionReport executionReport) throws FieldNotFound
FieldNotFound
protected abstract void handleExternal(ExecutionReport executionReport) throws FieldNotFound
FieldNotFound
protected abstract void handleUnknown(ExecutionReport executionReport) throws FieldNotFound
FieldNotFound
protected abstract void handleRestated(ExecutionReport executionReport, Order order) throws FieldNotFound
FieldNotFound
protected abstract boolean isOrderRejected(ExecutionReport executionReport) throws FieldNotFound
FieldNotFound
protected abstract boolean isOrderReplaced(ExecutionReport executionReport) throws FieldNotFound
FieldNotFound
protected abstract boolean isOrderRestated(ExecutionReport executionReport) throws FieldNotFound
FieldNotFound
protected abstract OrderStatus createStatus(ExecutionReport executionReport, Order order) throws FieldNotFound
FieldNotFound
protected abstract Fill createFill(ExecutionReport executionReport, Order order) throws FieldNotFound
FieldNotFound
protected abstract java.lang.String getDefaultBroker()
public void onMessage(ExecutionReport executionReport, SessionID sessionID) throws FieldNotFound
onMessage
in class AbstractFix44MessageHandler
FieldNotFound
public void onMessage(BusinessMessageReject reject, SessionID sessionID) throws FieldNotFound
onMessage
in class AbstractFix44MessageHandler
FieldNotFound
protected java.lang.String getStatusText(ExecutionReport executionReport) throws FieldNotFound
FieldNotFound
public void onMessage(OrderCancelReject reject, SessionID sessionID) throws FieldNotFound
onMessage
in class AbstractFix44MessageHandler
FieldNotFound