public class EngineSettings extends Object
Constructor and Description |
---|
EngineSettings()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
EngineSettings |
addListenPort(int listenPort)
Adds listen port for incoming FIX connections.
|
int |
getAsyncFileStorageQueueSize()
Returns async file session storage queue size.
|
int |
getAsyncFileStorageWriteErrorRetriesNumber()
Returns async file session storage write error retries number.
|
ConnectionMode |
getConnectionMode()
Returns session connection mode.
|
int |
getConnectionOutputQueueMaxSize()
Returns the maximum size of the internal output queue allocated for a FIX connection, in bytes.
|
int |
getConnectionOutStreamDelayWarningThreshold()
Returns the output stream write delay threshold after which the warning is logged.
|
int |
getConnectionPerfPreferenceBandwidth()
Returns socket performance preference for bandwidth.
|
int |
getConnectionPerfPreferenceConnectionTime()
Returns socket performance preference for connection time.
|
int |
getConnectionPerfPreferenceLatency()
Returns socket performance preference for latency.
|
long |
getConnectionReceiveSpinningTimeout()
Returns the current receive spinning timeout value (in nanoseconds).
|
int |
getConnectionRetriesInterval()
Returns reconnection interval in milliseconds.
|
int |
getConnectionRetriesNumber()
Returns reconnection attempts number.
|
long |
getConnectionSendSpinningTimeout()
Returns the current send spinning timeout value (in nanoseconds).
|
int |
getConnectionTcpReceiveBufferSize()
Returns TCP socket receive buffer size allocated to FIX connection, in bytes.
|
int |
getConnectionTcpSendBufferSize()
Returns TCP socket send buffer size allocated to FIX connection, in bytes.
|
int |
getDefaultHeartbeatInterval()
Returns the default heartbeat interval in seconds.
|
String |
getDialects()
Returns the location of one or several files with the FIX dialects definition.
|
String |
getFullStorageFolder()
Returns full storage folder path.
|
MessageFilter |
getInboundMessageLogFilter()
Returns session inbound message log filter.
|
String |
getLicense()
Returns the content of the license file if it is set explicitly using
setLicense(String) . |
int |
getLicenseAlertingDaysBeforeExpiration()
Returns the number of days to alert before the license expiration.
|
String |
getLicenseFile()
Returns the name of the license file resource.
|
Integer[] |
getListenPorts()
Returns listen port(s) for incoming FIX connections.
|
int |
getListenPortsBacklog()
Returns the maximum number of pending connections on listen ports.
|
int |
getMessageResendingPortionMaximumSize()
Returns the maximum size of the portion by which the message resending will be handled.
|
int |
getReasonableTransmissionTime()
Returns reasonable transmission time as % from heartbeat interval value.
|
int |
getResendingQueueSize()
Returns the number of sent messages that are available for resending on counterparty's Resend Request(2) message.
|
int |
getSessionListenerDelayWarningThreshold()
Returns the limit of time to spend in the session listener code.
|
int |
getSessionLogonConfirmationTimeout()
Returns number of seconds to wait for a logon response before disconnecting.
|
int |
getSessionLogoutConfirmationTimeout()
Returns number of seconds to wait for a logout response before disconnecting.
|
MessageMode |
getSessionMessageMode()
Returns session message mode.
|
ResendRequestLogic |
getSessionResendRequestLogic()
Returns session resend request logic.
|
int |
getSessionResendRequestMaximumRange()
Returns the maximum number of messages to be requested in one
Resend Request(2) message.
|
String |
getStorageFolder()
Returns file-based session storage folder.
|
int |
getThreadPoolSize()
Returns the size of the shared thread pool that is used in the thread pool connection mode.
|
long |
getThreadPoolSpinningTimeout()
Returns the current thread pool spinning timeout value (in nanoseconds).
|
String |
getVersions()
Returns the FIX dictionaries to load during the engine initialization.
|
EngineSettings |
init(Settings settings)
Initializes the settings.
|
boolean |
isAcceptorSendLogoutOnInvalidLogon()
Returns option to send a logout message, before dropping the telecommunication link in reply
on an invalid logon attempt.
|
boolean |
isCheckBeginStringMatch()
Returns whether BeginString must match session value in every inbound FIX message.
|
boolean |
isCheckCompIdsMatch()
Returns whether SenderCompId and TargetCompId must match session values in every inbound FIX message.
|
boolean |
isConnectionTcpNoDelay()
Returns TCP socket TCP_NODELAY parameter (disable/enable Nagle's algorithm).
|
boolean |
isDaemonAcceptorThread()
Returns whether acceptor thread is daemon.
|
boolean |
isEngineShutdownHook()
Returns whether to shutdown engine automatically on JVM shutdown.
|
boolean |
isIgnoreFileBasedStorageIntegrityErrors()
Returns whether to ignore file based storage integrity errors.
|
boolean |
isLogBeforeSending()
Returns whether outbound messages are logged before sending.
|
boolean |
isLogInboundMessages()
Returns whether to store inbound messages in the session storage.
|
boolean |
isLogOutboundMessages()
Returns whether to store outbound messages in the session storage.
|
boolean |
isProcessDeliverToCompId()
Returns whether to process the DeliverToCompID (tag 128) flag.
|
boolean |
isProcessLogonNextExpectedMsgSeqNum()
Returns whether to process NextExpectedMsgSeqNum(789) field in Logon(A).
|
boolean |
isSessionEventArgReuse()
Returns whether to re-use session event argument objects in each session.
|
boolean |
isSessionInboundMessageReuse()
Returns whether to use the same
FixMessage object for the incoming messages. |
boolean |
isSessionSendLogoutOnException()
Returns option to send the Logout message before dropping the telecommunication link in case of Exception
during the processing of incoming FIX message.
|
boolean |
isSessionSpecifyLastMsgSeqNumProcessed()
Returns the option to specify the
LastMsgSeqNumProcessed(369) field
on every message sent.
|
boolean |
isSessionUpdateHeaderFields()
If this option set to true then common header fields in the outgoing messages are always updated.
|
boolean |
isSessionUpdateSendingTime()
Returns whether to update
SendingTime(52)
field in the outgoing message if it is already set.
|
boolean |
isSpecifyApplVerIdField()
Returns whether to specify ApplVerID(1128) tag in all FIX messages
when a FIX protocol version FIX 5.0 and above is used.
|
boolean |
isSslNeedClientAuth()
Returns whether client authentication should be required.
|
boolean |
isUserSessionLevelMessageWarning()
Returns whether to warn if user sends session level message.
|
boolean |
isValidateCheckSum()
Returns whether to validate the CheckSum field value.
|
boolean |
isValidateDuplicatedField()
Returns whether to validate the presence of fields which appears more than once.
|
boolean |
isValidateEmptyFieldValues()
Returns whether to fail validation on empty field value.
|
boolean |
isValidateFieldValues()
Returns whether to validate field values in accordance with the FIX protocol or its FIX Dialect.
|
boolean |
isValidateInboundMessages()
Returns whether inbound messages are validated.
|
boolean |
isValidateNumberOfRepeatingGroupInstances()
Returns whether to validate the declared number of repeating group instances is equal to the actual one.
|
boolean |
isValidateOutboundMessages()
Returns whether outbound messages are validated.
|
boolean |
isValidateRequiredFields()
Returns whether to validate the presence of the required fields.
|
boolean |
isValidateUnknownFields()
Returns whether to fail validation on unknown fields.
|
boolean |
isValidateUnknownMessage()
Returns whether to fail validation on unknown message.
|
EngineSettings |
removeListenPort(int listenPort)
Removes listen port for incoming FIX connections.
|
EngineSettings |
setAcceptorSendLogoutOnInvalidLogon(boolean acceptorSendLogoutOnInvalidLogon)
Sets option to send a logout message, before dropping the telecommunication link in reply
on an invalid logon attempt.
|
EngineSettings |
setAsyncFileStorageQueueSize(int asyncFileStorageQueueSize)
Sets async file session storage queue size.
|
EngineSettings |
setAsyncFileStorageWriteErrorRetriesNumber(int asyncFileStorageWriteErrorRetriesNumber)
Sets async file session storage write error retries number.
|
EngineSettings |
setCheckBeginStringMatch(boolean checkBeginStringMatch)
Sets whether BeginString must match session value in every inbound FIX message.
|
EngineSettings |
setCheckCompIdsMatch(boolean checkCompIdsMatch)
Sets whether SenderCompId and TargetCompId must match session values in every inbound FIX message.
|
EngineSettings |
setConnectionMode(ConnectionMode connectionMode)
Sets session connection mode.
|
EngineSettings |
setConnectionMode(String connectionMode)
Sets session connection mode.
|
EngineSettings |
setConnectionOutputQueueMaxSize(int connectionOutputQueueMaxSize)
Sets the maximum size of the internal output queue allocated for a FIX connection, in bytes.
|
EngineSettings |
setConnectionOutStreamDelayWarningThreshold(int connectionOutStreamDelayWarningThreshold)
Sets the output stream write delay threshold after which the warning is logged.
|
EngineSettings |
setConnectionPerfPreferenceBandwidth(int connectionPerfPreferenceBandwidth)
Sets socket performance preference for bandwidth.
|
EngineSettings |
setConnectionPerfPreferenceConnectionTime(int connectionPerfPreferenceConnectionTime)
Sets socket performance preference for connection time.
|
EngineSettings |
setConnectionPerfPreferenceLatency(int connectionPerfPreferenceLatency)
Sets socket performance preference for latency.
|
EngineSettings |
setConnectionReceiveSpinningTimeout(long timeout)
Sets the non-blocking receive spinning timeout (in nanoseconds) before the receiving thread enters into the
blocking wait mode.
|
EngineSettings |
setConnectionRetriesInterval(int connectionRetriesInterval)
Sets the reconnection interval in milliseconds.
|
EngineSettings |
setConnectionRetriesNumber(int connectionRetries)
Sets reconnection attempts number.
|
EngineSettings |
setConnectionSendSpinningTimeout(long timeout)
Sets the send spinning timeout (in nanoseconds) of the
Session.send(Message) method to wait for the
socket sending buffer availability in the spin loop mode before placing the message to the outgoing queue
(to be sent later by the sending thread). |
EngineSettings |
setConnectionTcpNoDelay(boolean connectionTcpNoDelay)
Sets TCP socket TCP_NODELAY parameter (disable/enable Nagle's algorithm).
|
EngineSettings |
setConnectionTcpReceiveBufferSize(int connectionTcpReceiveBufferSize)
Sets TCP socket receive buffer size allocated to FIX connection, in bytes.
|
EngineSettings |
setConnectionTcpSendBufferSize(int connectionTcpSendBufferSize)
Sets TCP socket send buffer size allocated to FIX connection, in bytes.
|
EngineSettings |
setDaemonAcceptorThread(boolean daemonAcceptorThread)
Sets whether acceptor thread is daemon.
|
EngineSettings |
setDefaultHeartbeatInterval(int defaultHeartbeatInterval)
Sets the default heartbeat interval in seconds.
|
EngineSettings |
setDialects(String dialects)
Sets the location of one or several files with the FIX dialects definition.
|
EngineSettings |
setEngineShutdownHook(boolean engineShutdownHook)
Sets to shutdown engine automatically on JVM shutdown.
|
EngineSettings |
setIgnoreFileBasedStorageIntegrityErrors(boolean ignoreFileBasedStorageIntegrityErrors)
Sets whether to ignore file based storage integrity errors.
|
EngineSettings |
setInboundMessageLogFilter(MessageFilter inboundMessageLogFilter)
Sets session inbound message log filter.
|
EngineSettings |
setLicense(String license)
Sets the content of the license file.
|
EngineSettings |
setLicenseAlertingDaysBeforeExpiration(int days)
Sets the number of days to alert before the license expiration.
|
EngineSettings |
setLicenseFile(String licenseFile)
Sets the name of the license file resource.
|
EngineSettings |
setListenPorts(String listenPorts)
Sets listen port(s) for incoming FIX connections.
|
EngineSettings |
setListenPortsBacklog(int listenPortsBacklog)
Sets the maximum number of pending connections on listen ports.
|
EngineSettings |
setLogBeforeSending(boolean logBeforeSending)
Sets whether outbound messages are logged before sending.
|
EngineSettings |
setLogInboundMessages(boolean logInboundMessages)
Sets whether to store inbound messages in the session storage.
|
EngineSettings |
setLogOutboundMessages(boolean logOutboundMessages)
Sets whether to store outbound messages in the session storage.
|
EngineSettings |
setMessageResendingPortionMaximumSize(int messageResendingPortionMaximumSize)
Sets the maximum size of the portion by which the message resending will be handled.
|
EngineSettings |
setProcessDeliverToCompId(boolean processDeliverToCompId)
Sets whether to process the DeliverToCompID (tag 128) flag.
|
EngineSettings |
setProcessLogonNextExpectedMsgSeqNum(boolean processLogonNextExpectedMsgSeqNum)
Sets whether to process NextExpectedMsgSeqNum(789) field in Logon(A).
|
EngineSettings |
setReasonableTransmissionTime(int reasonableTransmissionTime)
Sets reasonable transmission time as % from heartbeat interval value.
|
EngineSettings |
setResendingQueueSize(int resendingQueueSize)
Sets the number of sent messages that are available for resending on counterparty's Resend Request(2) message.
|
EngineSettings |
setSessionEventArgReuse(boolean sessionEventArgReuse)
Sets whether to re-use session event argument objects in each session.
|
EngineSettings |
setSessionInboundMessageReuse(boolean sessionInboundMessageReuse)
Sets whether to use the same
FixMessage object for the incoming messages. |
EngineSettings |
setSessionListenerDelayWarningThreshold(int sessionListenerDelayWarningThreshold)
Sets the limit of time to spend in the session listener code.
|
EngineSettings |
setSessionLogonConfirmationTimeout(int sessionLogonConfirmationTimeout)
Sets number of seconds to wait for a logon response before disconnecting.
|
EngineSettings |
setSessionLogoutConfirmationTimeout(int sessionLogoutConfirmationTimeout)
Sets number of seconds to wait for a logout response before disconnecting.
|
EngineSettings |
setSessionMessageMode(MessageMode sessionMessageMode)
Sets session message mode.
|
EngineSettings |
setSessionMessageMode(String sessionMessageMode)
Sets session message mode.
|
EngineSettings |
setSessionResendRequestLogic(ResendRequestLogic sessionResendRequestLogic)
Sets session resend request logic.
|
EngineSettings |
setSessionResendRequestLogic(String sessionResendRequestLogic)
Sets session resend request logic.
|
EngineSettings |
setSessionResendRequestMaximumRange(int sessionResendRequestMaximumRange)
Sets the maximum number of messages to be requested in one
Resend Request(2) message.
|
EngineSettings |
setSessionSendLogoutOnException(boolean sessionSendLogoutOnException)
Sets option to send the Logout message before dropping the telecommunication link in case of Exception
during the processing of incoming FIX message.
|
EngineSettings |
setSessionSpecifyLastMsgSeqNumProcessed(boolean sessionSpecifyLastMsgSeqNumProcessed)
Sets the option to specify the
LastMsgSeqNumProcessed(369) field
on every message sent.
|
EngineSettings |
setSessionUpdateHeaderFields(boolean sessionUpdateHeaderFields)
If this option set to true then common header fields in the outgoing messages are always updated.
|
EngineSettings |
setSessionUpdateSendingTime(boolean sessionUpdateSendingTime)
Sets whether to update
SendingTime(52)
field in the outgoing message if it is already set.
|
EngineSettings |
setSpecifyApplVerIdField(boolean specifyApplVerIdField)
Sets whether to specify ApplVerID(1128) tag in all FIX messages
when a FIX protocol version FIX 5.0 and above is used.
|
EngineSettings |
setSslNeedClientAuth(boolean sslNeedClientAuth)
Sets whether client authentication should be required.
|
EngineSettings |
setStorageFolder(String storageFolder)
Sets file-based session storage folder.
|
EngineSettings |
setThreadPoolSize(int threadPoolSize)
Sets the size of the shared thread pool that is used in the thread pool connection mode.
|
EngineSettings |
setThreadPoolSpinningTimeout(long timeout)
Sets the thread pool spinning timeout (in nanoseconds) before a thread of thread pool enters into the
blocking wait mode for an operation.
|
EngineSettings |
setUserSessionLevelMessageWarning(boolean userSessionLevelMessageWarning)
Sets whether to warn if user sends session level message.
|
EngineSettings |
setValidateCheckSum(boolean validateCheckSum)
Sets whether to validate the Checksum field value.
|
EngineSettings |
setValidateDuplicatedField(boolean validateDuplicatedField)
Sets whether to validate the presence of fields which appears more than once.
|
EngineSettings |
setValidateEmptyFieldValues(boolean validateEmptyFieldValues)
Sets whether to fail validation on empty field value.
|
EngineSettings |
setValidateFieldValues(boolean validateFieldValues)
Sets whether to validate field values in accordance with the FIX protocol or its FIX Dialect.
|
EngineSettings |
setValidateInboundMessages(boolean validateInboundMessages)
Sets whether inbound messages are validated.
|
EngineSettings |
setValidateNumberOfRepeatingGroupInstances(boolean validateNumberOfRepeatingGroupInstances)
Sets whether to validate the declared number of repeating group instances is equal to the actual one.
|
EngineSettings |
setValidateOutboundMessages(boolean validateOutboundMessages)
Sets whether outbound messages are validated.
|
EngineSettings |
setValidateRequiredFields(boolean validateRequiredFields)
Sets whether to validate the presence of the required fields.
|
EngineSettings |
setValidateUnknownFields(boolean validateUnknownFields)
Sets whether to fail validation on unknown fields.
|
EngineSettings |
setValidateUnknownMessage(boolean validateUnknownMessage)
Sets whether to fail validation on unknown message.
|
EngineSettings |
setVersions(String versions)
Sets the FIX dictionaries to load during the engine initialization.
|
String |
toString() |
public static final String DEFAULT_HEARTBEAT_INTERVAL_PROP
public static final int DEFAULT_HEARTBEAT_INTERVAL_DEFAULT
public static final String CONNECTION_MODE_PROP
public static final ConnectionMode CONNECTION_MODE_DEFAULT
public static final String CONNECTION_TCP_NO_DELAY_PROP
public static final boolean CONNECTION_TCP_NO_DELAY_DEFAULT
public static final String CONNECTION_TCP_SEND_BUFFER_SIZE_PROP
public static final int CONNECTION_TCP_SEND_BUFFER_SIZE_DEFAULT
public static final String CONNECTION_TCP_RECEIVE_BUFFER_SIZE_PROP
public static final int CONNECTION_TCP_RECEIVE_BUFFER_SIZE_DEFAULT
public static final String CONNECTION_SEND_SPINNING_TIMEOUT_PROP
public static final long CONNECTION_SEND_SPINNING_TIMEOUT_DEFAULT
public static final String CONNECTION_RECEIVE_SPINNING_TIMEOUT_PROP
public static final long CONNECTION_RECEIVE_SPINNING_TIMEOUT_DEFAULT
public static final String CONNECTION_PERF_PREFERENCE_CONNECTION_TIME_PROP
public static final int CONNECTION_PERF_PREFERENCE_CONNECTION_TIME_DEFAULT
public static final String CONNECTION_PERF_PREFERENCE_LATENCY_PROP
public static final int CONNECTION_PERF_PREFERENCE_LATENCY_DEFAULT
public static final String CONNECTION_PERF_PREFERENCE_BANDWIDTH_PROP
public static final int CONNECTION_PERF_PREFERENCE_BANDWIDTH_DEFAULT
public static final String CONNECTION_OUTPUT_QUEUE_MAX_SIZE_PROP
public static final int CONNECTION_OUTPUT_QUEUE_MAX_SIZE_DEFAULT
public static final String CONNECTION_RETRIES_NUMBER_PROP
public static final int CONNECTION_RETRIES_NUMBER_DEFAULT
public static final String CONNECTION_RETRIES_INTERVAL_PROP
public static final int CONNECTION_RETRIES_INTERVAL_DEFAULT
public static final String THREAD_POOL_SIZE_PROP
public static final int THREAD_POOL_SIZE_DEFAULT
public static final String THREAD_POOL_SPINNING_TIMEOUT_PROP
public static final long THREAD_POOL_SPINNING_TIMEOUT_DEFAULT
public static final String DIALECTS_PROP
public static final String DIALECTS_DEFAULT
public static final String OLD_LICENSE_FILE
public static final String LICENSE_FILE_PROP
public static final String LICENSE_FILE_DEFAULT
public static final String LISTEN_PORT_PROP
public static final String LISTEN_PORT_DEFAULT
public static final int LISTEN_PORT_INT_DEFAULT
public static final int LISTEN_PORT_DISABLED
public static final int LISTEN_PORT_NO_COMM
public static final String LISTEN_PORTS_BACKLOG_PROP
public static final int LISTEN_PORTS_BACKLOG_DEFAULT
public static final String STORAGE_FOLDER_PROP
public static final String STORAGE_FOLDER_DEFAULT
public static final String LOG_INBOUND_MESSAGES_PROP
public static final boolean LOG_INBOUND_MESSAGES_DEFAULT
public static final String LOG_OUTBOUND_MESSAGES_PROP
public static final boolean LOG_OUTBOUND_MESSAGES_DEFAULT
public static final String LOG_BEFORE_SENDING_PROP
public static final boolean LOG_BEFORE_SENDING_DEFAULT
public static final String REASONABLE_TRANSMISSION_TIME_PROP
public static final int REASONABLE_TRANSMISSION_TIME_DEFAULT
public static final String VALIDATE_EMPTY_FIELD_VALUES_PROP
public static final boolean VALIDATE_EMPTY_FIELD_VALUES_DEFAULT
public static final String VALIDATE_FIELD_VALUES_PROP
public static final boolean VALIDATE_FIELD_VALUES_DEFAULT
public static final String VALIDATE_REQUIRED_FIELDS_PROP
public static final boolean VALIDATE_REQUIRED_FIELDS_DEFAULT
public static final String VALIDATE_UNKNOWN_FIELDS_PROP
public static final boolean VALIDATE_UNKNOWN_FIELDS_DEFAULT
public static final String VALIDATE_NUMBER_OF_REPEATING_GROUP_INSTANCES_PROP
public static final boolean VALIDATE_NUMBER_OF_REPEATING_GROUP_INSTANCES_DEFAULT
public static final String VALIDATE_DUPLICATED_FIELD_PROP
public static final boolean VALIDATE_DUPLICATED_FIELD_DEFAULT
public static final String VALIDATE_CHECKSUM_PROP
public static final boolean VALIDATE_CHECKSUM_DEFAULT
public static final String VALIDATE_UNKNOWN_MESSAGE_PROP
public static final boolean VALIDATE_UNKNOWN_MESSAGE_DEFAULT
public static final String VALIDATE_OUTBOUND_MESSAGES_PROP
public static final boolean VALIDATE_OUTBOUND_MESSAGES_DEFAULT
public static final String VALIDATE_INBOUND_MESSAGES_PROP
public static final boolean VALIDATE_INBOUND_MESSAGES_DEFAULT
public static final String CHECK_BEGIN_STRING_MATCH_PROP
public static final boolean CHECK_BEGIN_STRING_MATCH_DEFAULT
public static final String CHECK_COMP_IDS_MATCH_PROP
public static final boolean CHECK_COMP_IDS_MATCH_DEFAULT
public static final String SESSION_SEND_LOGOUT_ON_EXCEPTION_PROP
public static final boolean SESSION_SEND_LOGOUT_ON_EXCEPTION_DEFAULT
public static final String SESSION_INBOUND_MESSAGE_REUSE_PROP
public static final boolean SESSION_INBOUND_MESSAGE_REUSE_DEFAULT
public static final String SESSION_EVENT_ARG_REUSE_PROP
public static final boolean SESSION_EVENT_ARG_REUSE_DEFAULT
public static final String PROCESS_LOGON_NEXT_EXPECTED_MSG_SEQ_NUM_PROP
public static final boolean PROCESS_LOGON_NEXT_EXPECTED_MSG_SEQ_NUM_DEFAULT
public static final String SESSION_LISTENER_DELAY_WARNING_THRESHOLD_PROP
public static final int SESSION_LISTENER_DELAY_WARNING_THRESHOLD_DEFAULT
public static final String RESENDING_QUEUE_SIZE_PROP
public static final int RESENDING_QUEUE_SIZE_DEFAULT
public static final String SESSION_UPDATE_SENDING_TIME_PROP
public static final boolean SESSION_UPDATE_SENDING_TIME_DEFAULT
public static final String SESSION_RESEND_REQUEST_MAXIMUM_RANGE_PROP
public static final int SESSION_RESEND_REQUEST_MAXIMUM_RANGE_DEFAULT
public static final String SESSION_SPECIFY_LAST_MSG_SEQ_NUM_PROCESSED_PROP
public static final boolean SESSION_SPECIFY_LAST_MSG_SEQ_NUM_PROCESSED_DEFAULT
public static final String ENGINE_SHUTDOWN_HOOK_PROP
public static final boolean ENGINE_SHUTDOWN_HOOK_DEFAULT
public static final String CONN_OUT_STREAM_DELAY_WARN_THRESHOLD_PROP
public static final int CONN_OUT_STREAM_DELAY_WARN_THRESHOLD_DEFAULT
public static final String VERSIONS_PROP
public static final String VERSIONS_DEFAULT
public static final String USER_SESSION_LEVEL_MESSAGE_WARNING_PROP
public static final boolean USER_SESSION_LEVEL_MESSAGE_WARNING_DEFAULT
public static final String ACCEPTOR_SEND_LOGOUT_ON_INVALID_LOGON_PROP
public static final boolean ACCEPTOR_SEND_LOGOUT_ON_INVALID_LOGON_DEFAULT
public static final String SESSION_RESEND_REQUEST_LOGIC_PROP
public static final ResendRequestLogic SESSION_RESEND_REQUEST_LOGIC_DEFAULT
public static final String SESSION_MESSAGE_MODE_PROP
public static final MessageMode SESSION_MESSAGE_MODE_DEFAULT
public static final String SESSION_UPDATE_HEADER_FIELDS_PROP
public static final boolean SESSION_UPDATE_HEADER_FIELDS_DEFAULT
public static final String SESSION_LOGON_CONFIRMATION_TIMEOUT_PROP
public static final int SESSION_LOGON_CONFIRMATION_TIMEOUT_DEFAULT
public static final String SESSION_LOGOUT_CONFIRMATION_TIMEOUT_PROP
public static final int SESSION_LOGOUT_CONFIRMATION_TIMEOUT_DEFAULT
public static final String ASYNC_FILE_STORAGE_QUEUE_SIZE_PROP
public static final int ASYNC_FILE_STORAGE_QUEUE_SIZE_DEFAULT
public static final String ASYNC_FILE_STORAGE_WRITE_ERROR_RETRIES_NUMBER_PROP
public static final int ASYNC_FILE_STORAGE_WRITE_ERROR_RETRIES_NUMBER_DEFAULT
public static final String IGNORE_FILE_BASED_STORAGE_INTEGRITY_ERRORS_PROP
public static final boolean IGNORE_FILE_BASED_STORAGE_INTEGRITY_ERRORS_DEFAULT
public static final String SPECIFY_APPL_VER_ID_FIELD_PROP
public static final boolean SPECIFY_APPL_VER_ID_FIELD_DEFAULT
public static final String SSL_NEED_CLIENT_AUTH_PROP
public static final boolean SSL_NEED_CLIENT_AUTH_DEFAULT
public static final String DAEMON_ACCEPTOR_THREAD_PROP
public static final boolean DAEMON_ACCEPTOR_THREAD_DEFAULT
public static final String MESSAGE_RESENDING_PORTION_MAXIMUM_SIZE_PROP
public static final int MESSAGE_RESENDING_PORTION_MAXIMUM_SIZE_DEFAULT
public static final String PROCESS_DELIVER_TO_COMP_ID_PROP
public static final boolean PROCESS_DELIVER_TO_COMP_ID_DEFAULT
public static final String LICENSE_ALERTING_DAYS_BEFORE_EXPIRATION_PROP
public static final int LICENSE_ALERTING_DAYS_BEFORE_EXPIRATION_DEFAULT
public boolean isDaemonAcceptorThread()
DAEMON_ACCEPTOR_THREAD_DEFAULT
.
The property name is DAEMON_ACCEPTOR_THREAD_PROP
.public EngineSettings setDaemonAcceptorThread(boolean daemonAcceptorThread)
DAEMON_ACCEPTOR_THREAD_DEFAULT
.
The property name is DAEMON_ACCEPTOR_THREAD_PROP
.daemonAcceptorThread
- whether acceptor thread is daemon.public boolean isSslNeedClientAuth()
SSL_NEED_CLIENT_AUTH_DEFAULT
.
The property name is SSL_NEED_CLIENT_AUTH_PROP
.public EngineSettings setSslNeedClientAuth(boolean sslNeedClientAuth)
SSL_NEED_CLIENT_AUTH_DEFAULT
.
The property name is SSL_NEED_CLIENT_AUTH_PROP
.sslNeedClientAuth
- whether client authentication should be required.public boolean isSpecifyApplVerIdField()
SPECIFY_APPL_VER_ID_FIELD_DEFAULT
.
The property name is SPECIFY_APPL_VER_ID_FIELD_PROP
.public EngineSettings setSpecifyApplVerIdField(boolean specifyApplVerIdField)
SPECIFY_APPL_VER_ID_FIELD_DEFAULT
.
The property name is SPECIFY_APPL_VER_ID_FIELD_PROP
.specifyApplVerIdField
- whether to specify ApplVerID tag.public boolean isIgnoreFileBasedStorageIntegrityErrors()
IGNORE_FILE_BASED_STORAGE_INTEGRITY_ERRORS_DEFAULT
.
The property name is IGNORE_FILE_BASED_STORAGE_INTEGRITY_ERRORS_PROP
.public EngineSettings setIgnoreFileBasedStorageIntegrityErrors(boolean ignoreFileBasedStorageIntegrityErrors)
IGNORE_FILE_BASED_STORAGE_INTEGRITY_ERRORS_DEFAULT
.
The property name is IGNORE_FILE_BASED_STORAGE_INTEGRITY_ERRORS_PROP
.ignoreFileBasedStorageIntegrityErrors
- whether to ignore file based storage integrity errors.public int getAsyncFileStorageQueueSize()
ASYNC_FILE_STORAGE_QUEUE_SIZE_DEFAULT
.
The property name is ASYNC_FILE_STORAGE_QUEUE_SIZE_PROP
.public EngineSettings setAsyncFileStorageQueueSize(int asyncFileStorageQueueSize)
ASYNC_FILE_STORAGE_QUEUE_SIZE_DEFAULT
.
The property name is ASYNC_FILE_STORAGE_QUEUE_SIZE_PROP
.asyncFileStorageQueueSize
- async file session storage queue sizeIllegalArgumentException
- if (asyncFileStorageQueueSize < 1)public int getAsyncFileStorageWriteErrorRetriesNumber()
ASYNC_FILE_STORAGE_WRITE_ERROR_RETRIES_NUMBER_DEFAULT
.
The property name is ASYNC_FILE_STORAGE_WRITE_ERROR_RETRIES_NUMBER_PROP
.public EngineSettings setAsyncFileStorageWriteErrorRetriesNumber(int asyncFileStorageWriteErrorRetriesNumber)
ASYNC_FILE_STORAGE_WRITE_ERROR_RETRIES_NUMBER_DEFAULT
.
The property name is ASYNC_FILE_STORAGE_WRITE_ERROR_RETRIES_NUMBER_PROP
.asyncFileStorageWriteErrorRetriesNumber
- async file session storage write error retries numberIllegalArgumentException
- if (asyncFileStorageWriteErrorRetriesNumber < 0)public boolean isSessionUpdateHeaderFields()
SESSION_UPDATE_HEADER_FIELDS_DEFAULT
.
The property name is SESSION_UPDATE_HEADER_FIELDS_PROP
.public EngineSettings setSessionUpdateHeaderFields(boolean sessionUpdateHeaderFields)
SESSION_UPDATE_HEADER_FIELDS_DEFAULT
.
The property name is SESSION_UPDATE_HEADER_FIELDS_PROP
.sessionUpdateHeaderFields
- whether to update common header fields in the outgoing messages
if they are set alreadypublic int getSessionLogonConfirmationTimeout()
SESSION_LOGON_CONFIRMATION_TIMEOUT_DEFAULT
.
The property name is SESSION_LOGON_CONFIRMATION_TIMEOUT_PROP
.public EngineSettings setSessionLogonConfirmationTimeout(int sessionLogonConfirmationTimeout)
SESSION_LOGON_CONFIRMATION_TIMEOUT_DEFAULT
.
The property name is SESSION_LOGON_CONFIRMATION_TIMEOUT_PROP
.sessionLogonConfirmationTimeout
- number of seconds to wait for a logon response before disconnecting,
if it is 0 (default value) heartbeat interval will be considered.IllegalArgumentException
- if sessionLogonConfirmationTimeout < 0
public int getSessionLogoutConfirmationTimeout()
SESSION_LOGOUT_CONFIRMATION_TIMEOUT_DEFAULT
.
The property name is SESSION_LOGOUT_CONFIRMATION_TIMEOUT_PROP
.public EngineSettings setSessionLogoutConfirmationTimeout(int sessionLogoutConfirmationTimeout)
SESSION_LOGOUT_CONFIRMATION_TIMEOUT_DEFAULT
.
The property name is SESSION_LOGOUT_CONFIRMATION_TIMEOUT_PROP
.sessionLogoutConfirmationTimeout
- number of seconds to wait for a logout response before disconnecting,
if it is 0 (default value) heartbeat interval will be considered.IllegalArgumentException
- if sessionLogoutConfirmationTimeout < 0
public ResendRequestLogic getSessionResendRequestLogic()
SESSION_RESEND_REQUEST_LOGIC_DEFAULT
.
The property name is SESSION_RESEND_REQUEST_LOGIC_PROP
.public EngineSettings setSessionResendRequestLogic(String sessionResendRequestLogic)
SESSION_RESEND_REQUEST_LOGIC_DEFAULT
.
The property name is SESSION_RESEND_REQUEST_LOGIC_PROP
.sessionResendRequestLogic
- session resend request logicpublic EngineSettings setSessionResendRequestLogic(ResendRequestLogic sessionResendRequestLogic)
SESSION_RESEND_REQUEST_LOGIC_DEFAULT
.
The property name is SESSION_RESEND_REQUEST_LOGIC_PROP
.sessionResendRequestLogic
- session resend request logicpublic MessageMode getSessionMessageMode()
SESSION_MESSAGE_MODE_DEFAULT
.
The property name is SESSION_MESSAGE_MODE_PROP
.public EngineSettings setSessionMessageMode(String sessionMessageMode)
SESSION_MESSAGE_MODE_DEFAULT
.
The property name is SESSION_MESSAGE_MODE_PROP
.sessionMessageMode
- session message modepublic EngineSettings setSessionMessageMode(MessageMode sessionMessageMode)
SESSION_MESSAGE_MODE_DEFAULT
.
The property name is SESSION_MESSAGE_MODE_PROP
.sessionMessageMode
- session message modepublic boolean isAcceptorSendLogoutOnInvalidLogon()
ACCEPTOR_SEND_LOGOUT_ON_INVALID_LOGON_DEFAULT
.
The property name is ACCEPTOR_SEND_LOGOUT_ON_INVALID_LOGON_PROP
.public EngineSettings setAcceptorSendLogoutOnInvalidLogon(boolean acceptorSendLogoutOnInvalidLogon)
ACCEPTOR_SEND_LOGOUT_ON_INVALID_LOGON_DEFAULT
.
The property name is ACCEPTOR_SEND_LOGOUT_ON_INVALID_LOGON_PROP
.acceptorSendLogoutOnInvalidLogon
- option to send logout in reply to invalid logonpublic boolean isUserSessionLevelMessageWarning()
USER_SESSION_LEVEL_MESSAGE_WARNING_DEFAULT
.
The property name is USER_SESSION_LEVEL_MESSAGE_WARNING_PROP
.public EngineSettings setUserSessionLevelMessageWarning(boolean userSessionLevelMessageWarning)
USER_SESSION_LEVEL_MESSAGE_WARNING_DEFAULT
.
The property name is USER_SESSION_LEVEL_MESSAGE_WARNING_PROP
.userSessionLevelMessageWarning
- whether to warn if user sends session level messagepublic int getConnectionOutStreamDelayWarningThreshold()
CONN_OUT_STREAM_DELAY_WARN_THRESHOLD_DEFAULT
.
The property name is CONN_OUT_STREAM_DELAY_WARN_THRESHOLD_PROP
.public EngineSettings setConnectionOutStreamDelayWarningThreshold(int connectionOutStreamDelayWarningThreshold)
CONN_OUT_STREAM_DELAY_WARN_THRESHOLD_DEFAULT
.
The property name is CONN_OUT_STREAM_DELAY_WARN_THRESHOLD_PROP
.connectionOutStreamDelayWarningThreshold
- delay in millisecondspublic boolean isEngineShutdownHook()
ENGINE_SHUTDOWN_HOOK_DEFAULT
.
The property name is ENGINE_SHUTDOWN_HOOK_PROP
.public EngineSettings setEngineShutdownHook(boolean engineShutdownHook)
ENGINE_SHUTDOWN_HOOK_DEFAULT
.
The property name is ENGINE_SHUTDOWN_HOOK_PROP
.engineShutdownHook
- whether to shutdown engine automatically on JVM shutdownpublic int getSessionResendRequestMaximumRange()
Session.RESEND_REQUEST_MAXIMUM_RANGE_NO_LIMIT
for no limitpublic EngineSettings setSessionResendRequestMaximumRange(int sessionResendRequestMaximumRange)
sessionResendRequestMaximumRange
- maximum number of messages to be requested in one Resend Request or
Session.RESEND_REQUEST_MAXIMUM_RANGE_NO_LIMIT
for no limitIllegalArgumentException
- if (sessionResendRequestMaximumRange < 0)public boolean isSessionSpecifyLastMsgSeqNumProcessed()
public EngineSettings setSessionSpecifyLastMsgSeqNumProcessed(boolean sessionSpecifyLastMsgSeqNumProcessed)
sessionSpecifyLastMsgSeqNumProcessed
- whether to specify the LastMsgSeqNumProcessed(369)public boolean isSessionUpdateSendingTime()
public EngineSettings setSessionUpdateSendingTime(boolean sessionUpdateSendingTime)
sessionUpdateSendingTime
- whether to update SendingTime(52) fieldpublic int getResendingQueueSize()
public EngineSettings setResendingQueueSize(int resendingQueueSize)
resendingQueueSize
- resending queue size in messagesIllegalArgumentException
- if (resendingQueueSize < 0)public boolean isSessionInboundMessageReuse()
FixMessage
object for the incoming messages.public EngineSettings setSessionInboundMessageReuse(boolean sessionInboundMessageReuse)
FixMessage
object for the incoming messages.
Warning. In case of re-using mode the Message/FlatMessage objects can be operated only until control is
returned from the inbound message/flat message listener.
The default value is false.sessionInboundMessageReuse
- use the same FixMessage object for the incoming messagespublic int getSessionListenerDelayWarningThreshold()
public EngineSettings setSessionListenerDelayWarningThreshold(int sessionListenerDelayWarningThreshold)
sessionListenerDelayWarningThreshold
- delay in millisecondsIllegalArgumentException
- if (sessionListenerDelayWarningThreshold < 1)public boolean isProcessLogonNextExpectedMsgSeqNum()
public EngineSettings setProcessLogonNextExpectedMsgSeqNum(boolean processLogonNextExpectedMsgSeqNum)
processLogonNextExpectedMsgSeqNum
- process flagpublic MessageFilter getInboundMessageLogFilter()
NullMessageFilter.INSTANCE
.public EngineSettings setInboundMessageLogFilter(MessageFilter inboundMessageLogFilter)
NullMessageFilter.INSTANCE
.inboundMessageLogFilter
- session inbound message log filterNullPointerException
- if inboundMessageLogFilter == nullpublic boolean isSessionSendLogoutOnException()
public EngineSettings setSessionSendLogoutOnException(boolean sessionSendLogoutOnException)
sessionSendLogoutOnException
- option to send or not to sendpublic boolean isCheckBeginStringMatch()
public EngineSettings setCheckBeginStringMatch(boolean checkBeginStringMatch)
checkBeginStringMatch
- check flagpublic boolean isCheckCompIdsMatch()
public EngineSettings setCheckCompIdsMatch(boolean checkCompIdsMatch)
checkCompIdsMatch
- check flagpublic int getConnectionRetriesNumber()
public EngineSettings setConnectionRetriesNumber(int connectionRetries)
connectionRetries
- reconnection attempts number.IllegalArgumentException
- if (connectionRetries < 0)public int getConnectionRetriesInterval()
public EngineSettings setConnectionRetriesInterval(int connectionRetriesInterval)
connectionRetriesInterval
- reconnection interval in millisecondsIllegalArgumentException
- if (connectionRetriesInterval <= 0)public int getThreadPoolSize()
public EngineSettings setThreadPoolSize(int threadPoolSize)
threadPoolSize
- the size of the shared thread poolIllegalArgumentException
- if (threadPoolSize <= 0)public long getThreadPoolSpinningTimeout()
THREAD_POOL_SPINNING_TIMEOUT_DEFAULT
.
THREAD_POOL_SPINNING_TIMEOUT_PROP
.public EngineSettings setThreadPoolSpinningTimeout(long timeout)
THREAD_POOL_SPINNING_TIMEOUT_DEFAULT
.
THREAD_POOL_SPINNING_TIMEOUT_PROP
.timeout
- timeout in nanosecondspublic int getDefaultHeartbeatInterval()
public EngineSettings setDefaultHeartbeatInterval(int defaultHeartbeatInterval)
defaultHeartbeatInterval
- default heartbeat interval in secondsIllegalArgumentException
- if (defaultHeartbeatInterval < 0)public String getDialects()
public EngineSettings setDialects(String dialects)
dialects
- dialect files or empty string to set not dialectsNullPointerException
- if (dialects == null)public String getVersions()
VERSIONS_DEFAULT
.
The property name is VERSIONS_PROP
.public EngineSettings setVersions(String versions)
VERSIONS_DEFAULT
.
The property name is VERSIONS_PROP
.versions
- the FIX dictionaries to load during the engine initializationpublic EngineSettings init(Settings settings)
settings
- settings to initialize withNullPointerException
- if (settings == null)IllegalArgumentException
- if settings has incorrect valuepublic String getLicenseFile()
public EngineSettings setLicenseFile(String licenseFile)
licenseFile
- license file resourceNullPointerException
- if (licenseFile == null)public String getLicense()
setLicense(String)
.public EngineSettings setLicense(String license)
license
- license file content, null to reset the valueNullPointerException
- if (license == null)public Integer[] getListenPorts()
LISTEN_PORT_DISABLED
disables connection acceptor, but initiator is still possible.
The value LISTEN_PORT_NO_COMM
disables both connection acceptor and initiator.
The default value is LISTEN_PORT_DEFAULT
.
The property name is LISTEN_PORT_PROP
.public EngineSettings setListenPorts(String listenPorts)
LISTEN_PORT_DISABLED
disables connection acceptor, but initiator is still possible.
The value LISTEN_PORT_NO_COMM
disables both connection acceptor and initiator.
The default value is LISTEN_PORT_DEFAULT
.
The property name is LISTEN_PORT_PROP
.listenPorts
- comma delimited list of listen portsNullPointerException
- if (listenPorts == null)public EngineSettings addListenPort(int listenPort)
LISTEN_PORT_DISABLED
disables connection acceptor, but initiator is still possible.
The value LISTEN_PORT_NO_COMM
disables both connection acceptor and initiator.
The default value is LISTEN_PORT_DEFAULT
.
The property name is LISTEN_PORT_PROP
.listenPort
- listen portIllegalArgumentException
- if (listenPort < -1)public EngineSettings removeListenPort(int listenPort)
listenPort
- listen portIllegalArgumentException
- if (listenPort < 1)public int getListenPortsBacklog()
LISTEN_PORTS_BACKLOG_DEFAULT
.
The property name is LISTEN_PORTS_BACKLOG_PROP
.public EngineSettings setListenPortsBacklog(int listenPortsBacklog)
LISTEN_PORTS_BACKLOG_DEFAULT
.
The property name is LISTEN_PORTS_BACKLOG_PROP
.listenPortsBacklog
- the maximum number of pending connectionsIllegalArgumentException
- if listenPortsBacklog < 0
public int getReasonableTransmissionTime()
public EngineSettings setReasonableTransmissionTime(int reasonableTransmissionTime)
reasonableTransmissionTime
- reasonable transmission timeIllegalArgumentException
- if (reasonableTransmissionTime < 0)public boolean isValidateInboundMessages()
VALIDATE_INBOUND_MESSAGES_DEFAULT
.
The property name is VALIDATE_INBOUND_MESSAGES_PROP
.public EngineSettings setValidateInboundMessages(boolean validateInboundMessages)
VALIDATE_INBOUND_MESSAGES_DEFAULT
.
The property name is VALIDATE_INBOUND_MESSAGES_PROP
.validateInboundMessages
- whether inbound messages are validatedpublic boolean isValidateOutboundMessages()
VALIDATE_OUTBOUND_MESSAGES_DEFAULT
.
The property name is VALIDATE_OUTBOUND_MESSAGES_PROP
.public EngineSettings setValidateOutboundMessages(boolean validateOutboundMessages)
VALIDATE_OUTBOUND_MESSAGES_DEFAULT
.
The property name is VALIDATE_OUTBOUND_MESSAGES_PROP
.validateOutboundMessages
- whether outbound messages are validatedpublic boolean isValidateEmptyFieldValues()
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_EMPTY_FIELD_VALUES_DEFAULT
.
The property name is VALIDATE_EMPTY_FIELD_VALUES_PROP
.public EngineSettings setValidateEmptyFieldValues(boolean validateEmptyFieldValues)
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_EMPTY_FIELD_VALUES_DEFAULT
.
The property name is VALIDATE_EMPTY_FIELD_VALUES_PROP
.validateEmptyFieldValues
- whether to validate empty field valuespublic boolean isValidateFieldValues()
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_FIELD_VALUES_DEFAULT
.
The property name is VALIDATE_FIELD_VALUES_PROP
.public EngineSettings setValidateFieldValues(boolean validateFieldValues)
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_FIELD_VALUES_DEFAULT
.
The property name is VALIDATE_FIELD_VALUES_PROP
.validateFieldValues
- whether to validate field values in accordance with FIX protocol or its FIX Dialectpublic boolean isValidateNumberOfRepeatingGroupInstances()
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_NUMBER_OF_REPEATING_GROUP_INSTANCES_DEFAULT
.
The property name is VALIDATE_NUMBER_OF_REPEATING_GROUP_INSTANCES_PROP
.public EngineSettings setValidateNumberOfRepeatingGroupInstances(boolean validateNumberOfRepeatingGroupInstances)
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_NUMBER_OF_REPEATING_GROUP_INSTANCES_DEFAULT
.
The property name is VALIDATE_NUMBER_OF_REPEATING_GROUP_INSTANCES_PROP
.validateNumberOfRepeatingGroupInstances
- whether to validate the declared number of repeating group
instances is equal to the actual onepublic boolean isValidateDuplicatedField()
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_DUPLICATED_FIELD_DEFAULT
.
The property name is VALIDATE_DUPLICATED_FIELD_PROP
.public EngineSettings setValidateDuplicatedField(boolean validateDuplicatedField)
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_DUPLICATED_FIELD_DEFAULT
.
The property name is VALIDATE_DUPLICATED_FIELD_PROP
.validateDuplicatedField
- whether to validate the presence of fields which appears more than once.public boolean isValidateCheckSum()
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_CHECKSUM_DEFAULT
.
The property name is VALIDATE_CHECKSUM_PROP
.public EngineSettings setValidateCheckSum(boolean validateCheckSum)
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_CHECKSUM_DEFAULT
.
The property name is VALIDATE_CHECKSUM_PROP
.validateCheckSum
- whether to validate the CheckSum field valuepublic boolean isValidateRequiredFields()
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_REQUIRED_FIELDS_DEFAULT
.
The property name is VALIDATE_REQUIRED_FIELDS_PROP
.public EngineSettings setValidateRequiredFields(boolean validateRequiredFields)
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_REQUIRED_FIELDS_DEFAULT
.
The property name is VALIDATE_REQUIRED_FIELDS_PROP
.validateRequiredFields
- whether to validate the presence of the required fieldspublic boolean isValidateUnknownFields()
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_UNKNOWN_FIELDS_DEFAULT
.
The property name is VALIDATE_UNKNOWN_FIELDS_PROP
.public EngineSettings setValidateUnknownFields(boolean validateUnknownFields)
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_UNKNOWN_FIELDS_DEFAULT
.
The property name is VALIDATE_UNKNOWN_FIELDS_PROP
.validateUnknownFields
- whether to fail validation on unknown fieldspublic boolean isValidateUnknownMessage()
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_UNKNOWN_MESSAGE_DEFAULT
.
The property name is VALIDATE_UNKNOWN_MESSAGE_PROP
.public EngineSettings setValidateUnknownMessage(boolean validateUnknownMessage)
isValidateInboundMessages()
and isValidateOutboundMessages()
values.
The default value is VALIDATE_UNKNOWN_MESSAGE_DEFAULT
.
The property name is VALIDATE_UNKNOWN_MESSAGE_PROP
.validateUnknownMessage
- whether to fail validation on unknown messagepublic String getFullStorageFolder()
public String getStorageFolder()
STORAGE_FOLDER_DEFAULT
.
The property name is STORAGE_FOLDER_PROP
.public EngineSettings setStorageFolder(String storageFolder)
STORAGE_FOLDER_DEFAULT
.
The property name is STORAGE_FOLDER_PROP
.storageFolder
- file-based session storage folderNullPointerException
- if (storageFolder == null).public boolean isLogInboundMessages()
LOG_INBOUND_MESSAGES_DEFAULT
.
The property name is LOG_INBOUND_MESSAGES_PROP
.public EngineSettings setLogInboundMessages(boolean logInboundMessages)
LOG_INBOUND_MESSAGES_DEFAULT
.
The property name is LOG_INBOUND_MESSAGES_PROP
.logInboundMessages
- whether to log inbound messages in the session storagepublic boolean isLogOutboundMessages()
LOG_OUTBOUND_MESSAGES_DEFAULT
.
LOG_OUTBOUND_MESSAGES_PROP
.public EngineSettings setLogOutboundMessages(boolean logOutboundMessages)
LOG_OUTBOUND_MESSAGES_DEFAULT
.
LOG_OUTBOUND_MESSAGES_PROP
.logOutboundMessages
- whether to store outbound messages in the session storagepublic boolean isLogBeforeSending()
LOG_BEFORE_SENDING_DEFAULT
.
LOG_BEFORE_SENDING_PROP
.public EngineSettings setLogBeforeSending(boolean logBeforeSending)
LOG_BEFORE_SENDING_DEFAULT
.
LOG_BEFORE_SENDING_PROP
.logBeforeSending
- whether outbound messages are logged before sending.public ConnectionMode getConnectionMode()
CONNECTION_MODE_DEFAULT
.
The property name is CONNECTION_MODE_PROP
.public EngineSettings setConnectionMode(String connectionMode)
CONNECTION_MODE_DEFAULT
.
The property name is CONNECTION_MODE_PROP
.connectionMode
- session connection mode.public EngineSettings setConnectionMode(ConnectionMode connectionMode)
CONNECTION_MODE_DEFAULT
.
The property name is CONNECTION_MODE_PROP
.connectionMode
- session connection mode.public int getConnectionPerfPreferenceBandwidth()
Socket.setPerformancePreferences(int, int, int)
for details.
The default value is CONNECTION_PERF_PREFERENCE_BANDWIDTH_DEFAULT
.
The property name is CONNECTION_PERF_PREFERENCE_BANDWIDTH_PROP
.public EngineSettings setConnectionPerfPreferenceBandwidth(int connectionPerfPreferenceBandwidth)
Socket.setPerformancePreferences(int, int, int)
for details.
The default value is CONNECTION_PERF_PREFERENCE_BANDWIDTH_DEFAULT
.
The property name is CONNECTION_PERF_PREFERENCE_BANDWIDTH_PROP
.connectionPerfPreferenceBandwidth
- socket performance preference for bandwidthpublic int getConnectionPerfPreferenceLatency()
Socket.setPerformancePreferences(int, int, int)
for details.
The default value is CONNECTION_PERF_PREFERENCE_LATENCY_DEFAULT
.
The property name is CONNECTION_PERF_PREFERENCE_LATENCY_PROP
.public EngineSettings setConnectionPerfPreferenceLatency(int connectionPerfPreferenceLatency)
Socket.setPerformancePreferences(int, int, int)
for details.
The default value is CONNECTION_PERF_PREFERENCE_LATENCY_DEFAULT
.
The property name is CONNECTION_PERF_PREFERENCE_LATENCY_PROP
.connectionPerfPreferenceLatency
- socket performance preference for latencypublic int getConnectionPerfPreferenceConnectionTime()
Socket.setPerformancePreferences(int, int, int)
for details.
The default value is CONNECTION_PERF_PREFERENCE_CONNECTION_TIME_DEFAULT
.
The property name is CONNECTION_PERF_PREFERENCE_CONNECTION_TIME_PROP
.public EngineSettings setConnectionPerfPreferenceConnectionTime(int connectionPerfPreferenceConnectionTime)
Socket.setPerformancePreferences(int, int, int)
for details.
The default value is CONNECTION_PERF_PREFERENCE_CONNECTION_TIME_DEFAULT
.
The property name is CONNECTION_PERF_PREFERENCE_CONNECTION_TIME_PROP
.connectionPerfPreferenceConnectionTime
- socket performance preference for connection timepublic int getConnectionTcpReceiveBufferSize()
CONNECTION_TCP_RECEIVE_BUFFER_SIZE_DEFAULT
.
The property name is CONNECTION_TCP_RECEIVE_BUFFER_SIZE_PROP
.public EngineSettings setConnectionTcpReceiveBufferSize(int connectionTcpReceiveBufferSize)
CONNECTION_TCP_RECEIVE_BUFFER_SIZE_DEFAULT
.
The property name is CONNECTION_TCP_RECEIVE_BUFFER_SIZE_PROP
.connectionTcpReceiveBufferSize
- TCP socket receive buffer sizeIllegalArgumentException
- if (connectionTcpReceiveBufferSize < 0)public int getConnectionTcpSendBufferSize()
CONNECTION_TCP_SEND_BUFFER_SIZE_DEFAULT
.
The property name is CONNECTION_TCP_SEND_BUFFER_SIZE_PROP
.public EngineSettings setConnectionTcpSendBufferSize(int connectionTcpSendBufferSize)
CONNECTION_TCP_SEND_BUFFER_SIZE_DEFAULT
.
The property name is CONNECTION_TCP_SEND_BUFFER_SIZE_PROP
.connectionTcpSendBufferSize
- TCP socket send buffer sizeIllegalArgumentException
- if (connectionTcpSendBufferSize < 0)public boolean isConnectionTcpNoDelay()
CONNECTION_TCP_NO_DELAY_DEFAULT
.
The property name is CONNECTION_TCP_NO_DELAY_PROP
.public EngineSettings setConnectionTcpNoDelay(boolean connectionTcpNoDelay)
CONNECTION_TCP_NO_DELAY_DEFAULT
.
The property name is CONNECTION_TCP_NO_DELAY_PROP
.connectionTcpNoDelay
- TCP socket TCP_NODELAY parameterpublic long getConnectionSendSpinningTimeout()
CONNECTION_SEND_SPINNING_TIMEOUT_DEFAULT
.
CONNECTION_SEND_SPINNING_TIMEOUT_PROP
.public EngineSettings setConnectionSendSpinningTimeout(long timeout)
Session.send(Message)
method to wait for the
socket sending buffer availability in the spin loop mode before placing the message to the outgoing queue
(to be sent later by the sending thread).
CONNECTION_SEND_SPINNING_TIMEOUT_DEFAULT
.
CONNECTION_SEND_SPINNING_TIMEOUT_PROP
.timeout
- timeout in nanosecondspublic long getConnectionReceiveSpinningTimeout()
CONNECTION_RECEIVE_SPINNING_TIMEOUT_DEFAULT
.
CONNECTION_RECEIVE_SPINNING_TIMEOUT_PROP
.public EngineSettings setConnectionReceiveSpinningTimeout(long timeout)
CONNECTION_RECEIVE_SPINNING_TIMEOUT_DEFAULT
.
CONNECTION_RECEIVE_SPINNING_TIMEOUT_PROP
.timeout
- timeout in nanosecondspublic int getConnectionOutputQueueMaxSize()
CONNECTION_OUTPUT_QUEUE_MAX_SIZE_DEFAULT
.
The property name is CONNECTION_OUTPUT_QUEUE_MAX_SIZE_PROP
.public EngineSettings setConnectionOutputQueueMaxSize(int connectionOutputQueueMaxSize)
CONNECTION_OUTPUT_QUEUE_MAX_SIZE_DEFAULT
.
The property name is CONNECTION_OUTPUT_QUEUE_MAX_SIZE_PROP
.connectionOutputQueueMaxSize
- size of the internal output queueIllegalArgumentException
- if connectionOutputQueueMaxSize < 1
public boolean isSessionEventArgReuse()
public EngineSettings setSessionEventArgReuse(boolean sessionEventArgReuse)
sessionEventArgReuse
- whether to re-use session event argument objectspublic int getMessageResendingPortionMaximumSize()
MESSAGE_RESENDING_PORTION_MAXIMUM_SIZE_DEFAULT
.
The property name is MESSAGE_RESENDING_PORTION_MAXIMUM_SIZE_PROP
.public EngineSettings setMessageResendingPortionMaximumSize(int messageResendingPortionMaximumSize)
MESSAGE_RESENDING_PORTION_MAXIMUM_SIZE_DEFAULT
.
The property name is MESSAGE_RESENDING_PORTION_MAXIMUM_SIZE_PROP
.messageResendingPortionMaximumSize
- maximum size of the portionIllegalArgumentException
- if messageResendingPortionMaximumSize < 1
public boolean isProcessDeliverToCompId()
PROCESS_DELIVER_TO_COMP_ID_DEFAULT
.
The property name is PROCESS_DELIVER_TO_COMP_ID_PROP
.public EngineSettings setProcessDeliverToCompId(boolean processDeliverToCompId)
PROCESS_DELIVER_TO_COMP_ID_DEFAULT
.
The property name is PROCESS_DELIVER_TO_COMP_ID_PROP
.processDeliverToCompId
- whether to process the DeliverToCompID (tag 128) flagpublic int getLicenseAlertingDaysBeforeExpiration()
LICENSE_ALERTING_DAYS_BEFORE_EXPIRATION_DEFAULT
.
LICENSE_ALERTING_DAYS_BEFORE_EXPIRATION_PROP
.public EngineSettings setLicenseAlertingDaysBeforeExpiration(int days)
LICENSE_ALERTING_DAYS_BEFORE_EXPIRATION_DEFAULT
.
LICENSE_ALERTING_DAYS_BEFORE_EXPIRATION_PROP
.days
- the number of days to alert before the license expirationCopyright © 2005–2024 Onix Solutions. All rights reserved.