public static final class ILink3ConnectionConfiguration.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ILink3ConnectionConfiguration.Builder |
accessKeyId(java.lang.String accessKeyId)
Sets the key id used by the HMAC encryption.
|
ILink3ConnectionConfiguration.Builder |
backupHost(java.lang.String backupHost)
Sets the backup host IP to connect to.
|
ILink3ConnectionConfiguration |
build() |
ILink3ConnectionConfiguration.Builder |
firmId(java.lang.String firmId)
Sets the firmId used in the Negotiate and Establish messages.
|
ILink3ConnectionConfiguration.Builder |
handler(ILink3ConnectionHandler handler)
Sets your callback handler in order to receive business / application level messages from the exchange.
|
ILink3ConnectionConfiguration.Builder |
host(java.lang.String host)
Sets the host IP to connect to.
|
ILink3ConnectionConfiguration.Builder |
initialReceivedSequenceNumber(long initialReceivedSequenceNumber)
Sets the sequence number that is expected by your session upon session establishment from the exchange.
|
ILink3ConnectionConfiguration.Builder |
initialSentSequenceNumber(long initialSentSequenceNumber)
Sets the sequence number that is sent by your session upon session establishment.
|
ILink3ConnectionConfiguration.Builder |
maxRetransmitQueueSizeInBytes(int maxRetransmitQueueSize)
Sets the maximum size for the retransmit queue.
|
ILink3ConnectionConfiguration.Builder |
port(int port)
Sets the host port to connect to.
|
ILink3ConnectionConfiguration.Builder |
reEstablishLastConnection(boolean reEstablishLastConnection)
Enable a re-establishment of the same session with the same UUID, rather than generating a new UUID.
|
ILink3ConnectionConfiguration.Builder |
requestedKeepAliveIntervalInMs(int requestedKeepAliveIntervalInMs)
Sets the keepAliveInterval used in the Establish message.
|
ILink3ConnectionConfiguration.Builder |
retransmitNotificationTimeoutInMs(int retransmitNotificationTimeoutInMs)
Sets a timeout used in retransmit operations.
|
ILink3ConnectionConfiguration.Builder |
sessionId(java.lang.String sessionId)
Sets the sessionId used in the Negotiate and Establish messages.
|
ILink3ConnectionConfiguration.Builder |
tradingSystemName(java.lang.String tradingSystemName)
Sets the tradingSystemName used in the Establish message.
|
ILink3ConnectionConfiguration.Builder |
tradingSystemVendor(java.lang.String tradingSystemVendor)
Sets the tradingSystemVendor used in the Establish message.
|
ILink3ConnectionConfiguration.Builder |
tradingSystemVersion(java.lang.String tradingSystemVersion)
Sets the tradingSystemVersion used in the Establish message.
|
ILink3ConnectionConfiguration.Builder |
useBackupHost(boolean useBackupHost)
Sets whether you're connecting to the normal primary or the backup IP address.
|
ILink3ConnectionConfiguration.Builder |
userKey(java.lang.String userKey)
Sets the key used to by the HMAC encryption in the Negotiate and Establish messages.
|
public ILink3ConnectionConfiguration build()
public ILink3ConnectionConfiguration.Builder host(java.lang.String host)
host - the host IP to connect to.public ILink3ConnectionConfiguration.Builder port(int port)
port - the host port to connect to.public ILink3ConnectionConfiguration.Builder sessionId(java.lang.String sessionId)
sessionId - the sessionId used in the Negotiate and Establish messages.public ILink3ConnectionConfiguration.Builder firmId(java.lang.String firmId)
firmId - the firmId used in the Negotiate and Establish messages.public ILink3ConnectionConfiguration.Builder tradingSystemName(java.lang.String tradingSystemName)
tradingSystemName - the tradingSystemName used in the Establish message.public ILink3ConnectionConfiguration.Builder tradingSystemVersion(java.lang.String tradingSystemVersion)
tradingSystemVersion - the tradingSystemVersion used in the Establish message.public ILink3ConnectionConfiguration.Builder tradingSystemVendor(java.lang.String tradingSystemVendor)
tradingSystemVendor - the tradingSystemVendor used in the Establish message.public ILink3ConnectionConfiguration.Builder requestedKeepAliveIntervalInMs(int requestedKeepAliveIntervalInMs)
requestedKeepAliveIntervalInMs - the keepAliveInterval used in the Establish message.public ILink3ConnectionConfiguration.Builder accessKeyId(java.lang.String accessKeyId)
userKey(String) parameter.
This key id will be generated by the CME and can be downloaded from their Request Center along with the
user key.accessKeyId - the key id used by the HMAC encryption.userKey(String)public ILink3ConnectionConfiguration.Builder userKey(java.lang.String userKey)
userKey - the key used to by the HMAC encryption in the Negotiate and Establish messages.public ILink3ConnectionConfiguration.Builder initialSentSequenceNumber(long initialSentSequenceNumber)
reEstablishLastConnection(boolean) is set to true.initialSentSequenceNumber - the sequence that is sent by your session upon session establishmentpublic ILink3ConnectionConfiguration.Builder initialReceivedSequenceNumber(long initialReceivedSequenceNumber)
reEstablishLastConnection(boolean) is set to true.initialReceivedSequenceNumber - the sequence number that is expected by your session upon session
establishment from the exchangepublic ILink3ConnectionConfiguration.Builder reEstablishLastConnection(boolean reEstablishLastConnection)
Note: if this session has never connected before then a new UUID will be generated.
reEstablishLastConnection - true to re-establish the connection, false otherwise.public ILink3ConnectionConfiguration.Builder handler(ILink3ConnectionHandler handler)
handler - your callback handler in order to receive business / application level messages from the
exchange.public ILink3ConnectionConfiguration.Builder useBackupHost(boolean useBackupHost)
useBackupHost - true to connect to the backup hostpublic ILink3ConnectionConfiguration.Builder backupHost(java.lang.String backupHost)
backupHost - the backup host IP to connect to.public ILink3ConnectionConfiguration.Builder maxRetransmitQueueSizeInBytes(int maxRetransmitQueueSize)
maxRetransmitQueueSize - the maximum size for the retransmit queue.public ILink3ConnectionConfiguration.Builder retransmitNotificationTimeoutInMs(int retransmitNotificationTimeoutInMs)
FixPConnectionHandler.onRetransmitTimeout(FixPConnection)
method will be invoked. This notification could be used to cancel the retransmit or inform operators,
traders or algorithms that it's taking a while to get sequence numbers back into sync. The timeout
doesn't not in and of itself cancel the retransmit request - just call the callback.retransmitNotificationTimeoutInMs - timeout for receiving a notification when retransmit operations
take too long to be filled.Copyright © 2015-2022 Real Logic Limited. All Rights Reserved.