public class Session extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CustomApplicationVersion
Custom Application Version.
|
static String |
FixmlExtensionVersion
FIXML Version.
|
static String |
FixSchemaReleaseDate
FIX Schema Release Date.
|
static String |
FixVersion
FIX version.
|
Constructor and Description |
---|
Session(URL url,
String senderCompID,
String senderSubID,
String password)
Session constructor.
|
Session(URL url,
String senderCompID,
String senderSubID,
String password,
int pollingInterval)
Session constructor.
|
Session(URL url,
String senderCompID,
String senderSubID,
String password,
int pollingInterval,
String sslProtocol)
Session constructor.
|
Session(URL url,
String senderCompID,
String senderSubID,
String password,
String sslProtocol)
Session constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the connection and dispose resources
|
static String |
getLicenseDirectory()
Gets path to directory where license file is located.
|
LocalDate |
getLicenseExpirationDate() |
static String |
getLicenseFile()
Gets license file name or absolute path to license.
|
Collection<TradeCaptureReportRequest> |
getSubscriptions() |
void |
query(TradeCaptureReportRequest request)
Query request to retrieve the current status of trades.
|
void |
registerErrorListener(ErrorListener errorListener)
Register listener of error event.
|
void |
registerFixmlMessageListener(FixmlMessageListener messageListener)
Register listener of FIXML message events.
|
void |
registerMessageListener(MessageListener messageListener)
Register listener of message events.
|
static void |
setLicenseDirectory(String value)
Sets path to directory where license file is located.
|
static void |
setLicenseFile(String value)
Sets license file name or absolute path to license.
|
String |
subscribe()
Subscribe to Trade Capture Reporting without filtering (all trades).
|
String |
subscribe(TradeCaptureReportRequest request)
Subscribe to Trade Capture Reporting with filtering.
|
String |
subscribe(ZonedDateTime startTime)
Subscribe to Trade Capture Reporting without filtering (all trades).
|
void |
unregisterErrorListener()
Unregister listener of error event.
|
void |
unregisterFixmlMessageListener()
Unregister listener of Fixml message events.
|
void |
unregisterMessageListener()
Unregister listener of message events.
|
void |
unsubscribe(String id)
Unsubscribe from Trade Capture Reporting.
|
public static final String FixVersion
public static final String FixSchemaReleaseDate
public static final String FixmlExtensionVersion
public static final String CustomApplicationVersion
public Session(URL url, String senderCompID, String senderSubID, String password) throws LicenseException
url
- Uri of CME server.senderCompID
- Assigned value used to identify customer firm sending message.senderSubID
- The user ID assigned to the sender must be provided in all uppercase letters.password
- CME assigned password.LicenseException
- when the License is missing or overduepublic Session(URL url, String senderCompID, String senderSubID, String password, int pollingInterval) throws LicenseException
url
- Uri of CME server.senderCompID
- Assigned value used to identify customer firm sending message.senderSubID
- The user ID assigned to the sender must be provided in all uppercase letters.password
- CME assigned password.pollingInterval
- Interval in msec of subscription pollingLicenseException
- when the License is missing or overduepublic Session(URL url, String senderCompID, String senderSubID, String password, String sslProtocol) throws LicenseException
url
- Uri of CME server.senderCompID
- Assigned value used to identify customer firm sending message.senderSubID
- The user ID assigned to the sender must be provided in all uppercase letters.password
- CME assigned password.sslProtocol
- SSL Protocol. Values like 'TLSv1.1' or 'TLSv1.2' can be used. Please see protocol names at
SSLContext Algorithms.LicenseException
- when the License is missing or overduepublic Session(URL url, String senderCompID, String senderSubID, String password, int pollingInterval, String sslProtocol) throws LicenseException
url
- Uri of CME server.senderCompID
- Assigned value used to identify customer firm sending message.senderSubID
- The user ID assigned to the sender must be provided in all uppercase letters.password
- CME assigned password.pollingInterval
- Interval in msec of subscription pollingsslProtocol
- SSL Protocol. Values like 'TLSv1.1' or 'TLSv1.2' can be used. Please see protocol names at
SSLContext Algorithms.LicenseException
- when the License is missing or overduepublic static String getLicenseFile()
public static void setLicenseFile(String value)
value
- License file name or absolute path to license.public static String getLicenseDirectory()
public static void setLicenseDirectory(String value)
value
- Path to directory where license file is located.public void close() throws InterruptedException
InterruptedException
- when thread is interrupted during closingpublic final LocalDate getLicenseExpirationDate()
public final Collection<TradeCaptureReportRequest> getSubscriptions()
public void registerErrorListener(ErrorListener errorListener)
errorListener
- Listener.public void unregisterErrorListener()
public void registerMessageListener(MessageListener messageListener)
messageListener
- Listener.public void unregisterMessageListener()
public void registerFixmlMessageListener(FixmlMessageListener messageListener)
messageListener
- Listener.public void unregisterFixmlMessageListener()
public final String subscribe(TradeCaptureReportRequest request)
request
- Request which contains filtering information.public final String subscribe()
public final String subscribe(ZonedDateTime startTime)
startTime
- The starting time of the subscription.public final void unsubscribe(String id)
id
- Subscription ID.public final void query(TradeCaptureReportRequest request)
request
- Request which contains filtering information.Copyright © 2014–2025 Onix Solutions. All rights reserved.