com.lmax.api.orderbook
Class OrderBookStatusSubscriptionRequest

java.lang.Object
  extended by com.lmax.api.SubscriptionRequest
      extended by com.lmax.api.orderbook.OrderBookStatusSubscriptionRequest
All Implemented Interfaces:
com.lmax.api.internal.Request

public class OrderBookStatusSubscriptionRequest
extends SubscriptionRequest

Request to subscribe to order book status events for an order book (i.e. Opened, Suspended, Closed, etc).


Constructor Summary
OrderBookStatusSubscriptionRequest(long instrumentId)
          Construct a new OrderBookStatusSubscriptionRequest.
 
Method Summary
 long getInstrumentId()
          Get the instrument id.
 void writeTo(com.lmax.api.internal.xml.StructuredWriter writer)
          Internal: Output this request.
 
Methods inherited from class com.lmax.api.SubscriptionRequest
getUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderBookStatusSubscriptionRequest

public OrderBookStatusSubscriptionRequest(long instrumentId)
Construct a new OrderBookStatusSubscriptionRequest.

Parameters:
instrumentId - The id of the instrument to subscribe to status events for.
Method Detail

getInstrumentId

public long getInstrumentId()
Get the instrument id.

Returns:
the instrumentId

writeTo

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

Parameters:
writer - The destination for the content of this request