|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.otfeed.protocol.request.AbstractRequest
org.otfeed.protocol.request.AbstractSessionRequest
org.otfeed.protocol.request.SnapshotRequest
public class SnapshotRequest
Request to receive quote snapshot. Snapshot is the set of the most recent events.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.otfeed.protocol.request.AbstractRequest |
|---|
AbstractRequest.JobStatus |
| Constructor Summary | |
|---|---|
SnapshotRequest(int requestId,
java.lang.String exchangeCode,
java.lang.String symbolCode,
VolumeStyleEnum volumeStyle,
IDataDelegate<OTQuote> quoteDelegate,
IDataDelegate<OTTrade> tradeDelegate,
IDataDelegate<OTMMQuote> mmQuoteDelegate,
IDataDelegate<OTBBO> bboDelegate,
ICompletionDelegate completionDelegate)
|
|
| Method Summary | |
|---|---|
void |
fireCompleted(OTError error)
Internal method: used to wake up threads sleeping in waitForCompletion(). |
OTError |
getError()
|
java.lang.String |
getExchangeCode()
|
java.lang.String |
getSymbolCode()
|
VolumeStyleEnum |
getVolumeStyle()
|
AbstractRequest.JobStatus |
handleMessage(Header header,
java.nio.ByteBuffer in)
Abstract method to handle response message. |
boolean |
isCompleted()
|
void |
waitForCompletion()
Convenience method: blocks calling thread until request finishes. |
boolean |
waitForCompletion(long millis)
Convenience method: blocks calling thread until request finishes, or the specified number of milliseconds elapses. |
void |
writeRequest(java.nio.ByteBuffer out)
Writes out the request header and session string. |
| Methods inherited from class org.otfeed.protocol.request.AbstractSessionRequest |
|---|
getCancelCommand, getSessionId, setSessionId |
| Methods inherited from class org.otfeed.protocol.request.AbstractRequest |
|---|
getCommand, getRequestId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SnapshotRequest(int requestId,
java.lang.String exchangeCode,
java.lang.String symbolCode,
VolumeStyleEnum volumeStyle,
IDataDelegate<OTQuote> quoteDelegate,
IDataDelegate<OTTrade> tradeDelegate,
IDataDelegate<OTMMQuote> mmQuoteDelegate,
IDataDelegate<OTBBO> bboDelegate,
ICompletionDelegate completionDelegate)
| Method Detail |
|---|
public java.lang.String getExchangeCode()
public java.lang.String getSymbolCode()
public VolumeStyleEnum getVolumeStyle()
public void writeRequest(java.nio.ByteBuffer out)
AbstractSessionRequest
writeRequest in class AbstractSessionRequestout - output buffer.
public AbstractRequest.JobStatus handleMessage(Header header,
java.nio.ByteBuffer in)
AbstractRequest
handleMessage in class AbstractRequestheader - parsed response header.in - input buffer with the rest of the
data (after header has been parsed).public final OTError getError()
public final void fireCompleted(OTError error)
waitForCompletion().
public final boolean isCompleted()
public final boolean waitForCompletion(long millis)
millis - how long to wait for completion.public final void waitForCompletion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||