Class SpringSessionSettings


  • public class SpringSessionSettings
    extends LazyBean
    A Spring-aware QuickFIX/J session settings. It also offers these extensions:
    • The settings may be associated with zero or more session descriptors SpringSessionDescriptor, which inherit default session parameter values from the settings.

    • The log factory class may be specified via the extension parameter LOG_FACTORY_CLASS_PARAM; if it is not specified, a SLF4JLogFactory is used.

    • The message store factory class may be specified via the extension parameter MESSAGE_STORE_FACTORY_CLASS_PARAM; if it is not specified, a FileStoreFactory is used.

    Since:
    1.0.0
    Version:
    $Id: SpringSessionSettings.java 17411 2017-04-28 14:50:38Z colin $
    Author:
    tlerios@marketcetera.com
    • Field Detail

      • LOG_FACTORY_CLASS_PARAM

        public static final String LOG_FACTORY_CLASS_PARAM
        The parameter name for the QuickFIX/J log factory class extension parameter.
        See Also:
        Constant Field Values
      • MESSAGE_STORE_FACTORY_CLASS_PARAM

        public static final String MESSAGE_STORE_FACTORY_CLASS_PARAM
        The parameter name for the QuickFIX/J message store factory class extension parameter.
        See Also:
        Constant Field Values
      • mQSettings

        private quickfix.SessionSettings mQSettings
      • mQLogFactory

        private quickfix.LogFactory mQLogFactory
      • mQMessageStoreFactory

        private quickfix.MessageStoreFactory mQMessageStoreFactory
    • Constructor Detail

      • SpringSessionSettings

        public SpringSessionSettings()
    • Method Detail

      • setDefaults

        public void setDefaults​(Map<Object,​Object> defaults)
        Sets the receiver's defaults to the given ones. This is a key-value map of QuickFIX/J session parameters, and all keys and values are strings.
        Parameters:
        defaults - The defaults. It may be null.
      • getDefaults

        public Map<Object,​Object> getDefaults()
        Returns the receiver's defaults. This is a key-value map of QuickFIX/J session parameters, and all keys and values are strings.
        Returns:
        The defaults. It may be null.
      • setDescriptors

        public void setDescriptors​(List<SpringSessionDescriptor> descriptors)
        Sets the receiver's session descriptors to the given ones. This method also sets the settings of each descriptor to the receiver.
        Parameters:
        descriptors - The descriptors. It may be null.
      • getDescriptors

        public List<SpringSessionDescriptor> getDescriptors()
        Returns the receiver's session descriptors.
        Returns:
        The descriptors. It may be null.
      • getQSettings

        public quickfix.SessionSettings getQSettings()
        Returns the receiver's QuickFIX/J session settings.
        Returns:
        The settings.
      • getQLogFactory

        public quickfix.LogFactory getQLogFactory()
        Returns the receiver's QuickFIX/J log factory.
        Returns:
        The factory.
      • getQMessageStoreFactory

        public quickfix.MessageStoreFactory getQMessageStoreFactory()
        Returns the receiver's QuickFIX/J message store factory.
        Returns:
        The factory.