Class QuickFixJTemplate

  • All Implemented Interfaces:
    QuickFixJOperations

    public class QuickFixJTemplate
    extends Object
    implements QuickFixJOperations
    Synchronous client to perform requests, exposing a simple, template method API over the QuickFIX/J client
    Author:
    Eduardo Sanchez-Ros
    • Constructor Detail

      • QuickFixJTemplate

        public QuickFixJTemplate()
    • Method Detail

      • setSessionLookupHandler

        public void setSessionLookupHandler​(SessionLookupHandler sessionLookupHandler)
      • setDoValidation

        public void setDoValidation​(boolean doValidation)
      • send

        public boolean send​(quickfix.Message message)
        Description copied from interface: QuickFixJOperations
        Sends a message to the session specified in the message's target identifiers.
        Specified by:
        send in interface QuickFixJOperations
        Parameters:
        message - a FIX message
        Returns:
        true is send was successful, false otherwise
      • send

        public boolean send​(quickfix.Message message,
                            String qualifier)
        Description copied from interface: QuickFixJOperations
        Sends a message to the session specified in the message's target identifiers. The session qualifier is used to distinguish sessions with the same target identifiers.
        Specified by:
        send in interface QuickFixJOperations
        Parameters:
        message - a FIX message
        qualifier - a session qualifier
        Returns:
        true is send was successful, false otherwise
      • send

        public boolean send​(quickfix.Message message,
                            String senderCompID,
                            String targetCompID)
        Description copied from interface: QuickFixJOperations
        Sends a message to the session specified by the provided target company ID. The sender company ID is provided as an argument rather than from the message.
        Specified by:
        send in interface QuickFixJOperations
        Parameters:
        message - a FIX message
        senderCompID - the sender's company ID
        targetCompID - the target's company ID
        Returns:
        true is send was successful, false otherwise
      • send

        public boolean send​(quickfix.Message message,
                            String senderCompID,
                            String targetCompID,
                            String qualifier)
        Description copied from interface: QuickFixJOperations
        Sends a message to the session specified by the provided target company ID. The sender company ID is provided as an argument rather than from the message. The session qualifier is used to distinguish sessions with the same target identifiers.
        Specified by:
        send in interface QuickFixJOperations
        Parameters:
        message - a FIX message
        senderCompID - the sender's company ID
        targetCompID - the target's company ID
        qualifier - a session qualifier
        Returns:
        true is send was successful, false otherwise
      • send

        public boolean send​(quickfix.Message message,
                            quickfix.SessionID sessionID)
        Description copied from interface: QuickFixJOperations
        Sends a message to the session specified by the provided session ID.
        Specified by:
        send in interface QuickFixJOperations
        Parameters:
        message - a FIX message
        sessionID - the target SessionID
        Returns:
        true is send was successful, false otherwise
      • doSend

        protected boolean doSend​(quickfix.Message message,
                                 quickfix.SessionID sessionID)