public final class MFMarketDataSessionToCoreMarketDataSessionAdapter extends java.lang.Object implements MFMarketDataSession
| Constructor and Description |
|---|
MFMarketDataSessionToCoreMarketDataSessionAdapter(CoreMarketDataSession delegate) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPort()
The port used for this session.
|
long |
getSendingTime()
Retrieves the MF server sending time (nanoseconds since epoch) of the current message frame.
|
java.lang.String |
getUsername()
The username used for this session.
|
long |
getVenueID()
Gets the venue ID associated with this session.
|
java.lang.String |
getVenueName()
Gets the venue name associated with this session.
|
boolean |
isLoggedOn() |
void |
logon()
Sends a logon message with the supplied username and password.
|
void |
logout()
Initiates logout.
|
void |
logoutResponse()
The response to a logout from the server.
|
void |
marketDataRequest(mfmarketdata.SubscriptionRequestType subType,
long securityID)
A request to subscribe or unsubscribe to a particular security.
|
void |
marketDataRequestHistoric(mfmarketdata.SubscriptionRequestType subType,
long startTimestamp,
long endTimestamp,
long venueID,
long securityID) |
void |
registerForBatch(int batchDefinitionID,
long[] securityIDs)
Register for a given list of securities.
|
void |
securityDefinitionRequest()
Requests information about the securities supported on this venue.
|
java.lang.String |
toString() |
void |
unregisterFromBatch(int batchDefinitionID)
Unregister for a previously subscribed for batch of securities.
|
public MFMarketDataSessionToCoreMarketDataSessionAdapter(CoreMarketDataSession delegate) throws MFException
MFExceptionpublic java.lang.String getUsername()
MFSessiongetUsername in interface MFSessionpublic int getPort()
MFSessionpublic long getVenueID()
MFMarketDataSessiongetVenueID in interface MFMarketDataSessionpublic java.lang.String getVenueName()
MFMarketDataSessiongetVenueName in interface MFMarketDataSessionpublic void securityDefinitionRequest()
throws MFException
MFMarketDataSessionsecurityDefinitionRequest in interface MFMarketDataSessionMFException - If there is an error when attempting to
send this message.public void marketDataRequest(mfmarketdata.SubscriptionRequestType subType,
long securityID)
throws MFException
MFMarketDataSessionmarketDataRequest in interface MFMarketDataSessionMFException - If there is an error when attempting to
send this messagepublic void marketDataRequestHistoric(mfmarketdata.SubscriptionRequestType subType,
long startTimestamp,
long endTimestamp,
long venueID,
long securityID)
throws MFException
marketDataRequestHistoric in interface MFMarketDataSessionMFExceptionpublic void registerForBatch(int batchDefinitionID,
long[] securityIDs)
throws MFException
MFMarketDataSessionMFMarketDataSession.unregisterFromBatch(int)registerForBatch in interface MFMarketDataSessionbatchDefinitionID - identifier for the batch that you can use to later unregistersecurityIDs - list of ids of securities to include in this batchMFExceptionpublic void unregisterFromBatch(int batchDefinitionID)
throws MFException
MFMarketDataSessionMFMarketDataSession.registerForBatch(int, long[])unregisterFromBatch in interface MFMarketDataSessionbatchDefinitionID - identifier for the batch to unregisterMFExceptionpublic void logon()
throws MFException
MFSessionlogon in interface MFSessionMFException - If there is an error when attempting to
send this message.public void logout()
throws MFException
MFSessionlogout in interface MFSessionMFException - If there is an error when attempting to
send this message.public boolean isLoggedOn()
isLoggedOn in interface MFSessionpublic void logoutResponse()
throws MFException
MFSessionlogoutResponse in interface MFSessionMFException - If there is an error when attempting to
send this message.public long getSendingTime()
MFSessiongetSendingTime in interface MFSessionpublic java.lang.String toString()
toString in class java.lang.Object