com.lmax.api.orderbook
Class OrderBookStatusSubscriptionRequest
java.lang.Object
com.lmax.api.SubscriptionRequest
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).
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrderBookStatusSubscriptionRequest
public OrderBookStatusSubscriptionRequest(long instrumentId)
- Construct a new OrderBookStatusSubscriptionRequest.
- Parameters:
instrumentId
- The id of the instrument to subscribe to status events for.
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