Class QuickFixJTemplate
java.lang.Object
io.allune.quickfixj.spring.boot.starter.template.QuickFixJTemplate
- All Implemented Interfaces:
QuickFixJOperations
Synchronous client to perform requests, exposing a simple, template
method API over the QuickFIX/J client
- Author:
- Eduardo Sanchez-Ros
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoSend(quickfix.Message message, quickfix.SessionID sessionID) booleansend(quickfix.Message message) Sends a message to the session specified in the message's target identifiers.booleanSends a message to the session specified in the message's target identifiers.booleanSends a message to the session specified by the provided target company ID.booleanSends 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 Details
-
QuickFixJTemplate
public QuickFixJTemplate() -
QuickFixJTemplate
-
-
Method Details
-
setSessionLookupHandler
-
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
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
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)
-