Class QuickFixJTemplate

java.lang.Object
io.allune.quickfixj.spring.boot.starter.template.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 Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    doSend(quickfix.Message message, quickfix.SessionID sessionID)
     
    boolean
    send(quickfix.Message message)
    Sends a message to the session specified in the message's target identifiers.
    boolean
    send(quickfix.Message message, String qualifier)
    Sends a message to the session specified in the message's target identifiers.
    boolean
    send(quickfix.Message message, String senderCompID, String targetCompID)
    Sends a message to the session specified by the provided target company ID.
    boolean
    send(quickfix.Message message, String senderCompID, String targetCompID, String qualifier)
    Sends a message to the session specified by the provided target company ID.
    boolean
    send(quickfix.Message message, quickfix.SessionID sessionID)
    Sends a message to the session specified by the provided session ID.
    void
    setDoValidation(boolean doValidation)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • QuickFixJTemplate

      public QuickFixJTemplate()
    • QuickFixJTemplate

      public QuickFixJTemplate(SessionLookupHandler sessionLookupHandler)
  • Method Details

    • 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)