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 QuickFixJTemplate()QuickFixJTemplate(SessionLookupHandler sessionLookupHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoSend(quickfix.Message message, quickfix.SessionID sessionID)booleansend(quickfix.Message message)Sends a message to the session specified in the message's target identifiers.booleansend(quickfix.Message message, String qualifier)Sends a message to the session specified in the message's target identifiers.booleansend(quickfix.Message message, String senderCompID, String targetCompID)Sends a message to the session specified by the provided target company ID.booleansend(quickfix.Message message, String senderCompID, String targetCompID, String qualifier)Sends a message to the session specified by the provided target company ID.booleansend(quickfix.Message message, quickfix.SessionID sessionID)Sends a message to the session specified by the provided session ID.voidsetDoValidation(boolean doValidation)voidsetSessionLookupHandler(SessionLookupHandler sessionLookupHandler)
-
-
-
Constructor Detail
-
QuickFixJTemplate
public QuickFixJTemplate()
-
QuickFixJTemplate
public QuickFixJTemplate(SessionLookupHandler sessionLookupHandler)
-
-
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:QuickFixJOperationsSends a message to the session specified in the message's target identifiers.- Specified by:
sendin interfaceQuickFixJOperations- 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:QuickFixJOperationsSends 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:
sendin interfaceQuickFixJOperations- Parameters:
message- a FIX messagequalifier- 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:QuickFixJOperationsSends 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:
sendin interfaceQuickFixJOperations- Parameters:
message- a FIX messagesenderCompID- the sender's company IDtargetCompID- 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:QuickFixJOperationsSends 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:
sendin interfaceQuickFixJOperations- Parameters:
message- a FIX messagesenderCompID- the sender's company IDtargetCompID- the target's company IDqualifier- 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:QuickFixJOperationsSends a message to the session specified by the provided session ID.- Specified by:
sendin interfaceQuickFixJOperations- Parameters:
message- a FIX messagesessionID- the target SessionID- Returns:
- true is send was successful, false otherwise
-
doSend
protected boolean doSend(quickfix.Message message, quickfix.SessionID sessionID)
-
-