com.lmax.api.order
Class CancelOrderRequest

java.lang.Object
  extended by com.lmax.api.order.CancelOrderRequest
All Implemented Interfaces:
com.lmax.api.internal.Request

public class CancelOrderRequest
extends java.lang.Object
implements com.lmax.api.internal.Request

Cancel Order Request.


Constructor Summary
CancelOrderRequest(long instrumentId, java.lang.String originalInstructionId)
          Construct the cancel order request.
CancelOrderRequest(long instrumentId, java.lang.String originalInstructionId, java.lang.String instructionId)
          Construct the cancel order request.
 
Method Summary
 java.lang.String getUri()
          The cancel order uri.
 void writeTo(com.lmax.api.internal.xml.StructuredWriter writer)
          Internal: Output this request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancelOrderRequest

public CancelOrderRequest(long instrumentId,
                          java.lang.String originalInstructionId)
Construct the cancel order request.

Parameters:
instrumentId - The instrumentId of the order book on which, the order to be cancelled was placed.
originalInstructionId - The originalInstructionId that was returned by the place order response callback.

CancelOrderRequest

public CancelOrderRequest(long instrumentId,
                          java.lang.String originalInstructionId,
                          java.lang.String instructionId)
Construct the cancel order request.

Parameters:
instrumentId - The instrumentId of the order book on which, the order to be cancelled was placed.
originalInstructionId - The originalInstructionId that was returned by the place order response callback.
instructionId - The user-defined correlation ID of the cancellation request
Method Detail

getUri

public java.lang.String getUri()
The cancel order uri.

Specified by:
getUri in interface com.lmax.api.internal.Request
Returns:
The cancel order uri.

writeTo

public void writeTo(com.lmax.api.internal.xml.StructuredWriter writer)
Internal: Output this request.

Specified by:
writeTo in interface com.lmax.api.internal.Request
Parameters:
writer - The destination for the content of this request