com.lmax.api.orderbook
Class OrderBookSubscriptionRequest

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

public class OrderBookSubscriptionRequest
extends SubscriptionRequest

Request to subscribe to order book events for an instrument.


Constructor Summary
OrderBookSubscriptionRequest(long instrumentId)
          Construct a new OrderBookSubscriptionRequest.
 
Method Summary
 long getInstrumentId()
          Get the instrumentId.
 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

OrderBookSubscriptionRequest

public OrderBookSubscriptionRequest(long instrumentId)
Construct a new OrderBookSubscriptionRequest.

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

getInstrumentId

public long getInstrumentId()
Get the instrumentId.

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