Package com.epam.fixengine
Class StandardFIXSessionFactory
java.lang.Object
com.epam.fixengine.StandardFIXSessionFactory
- All Implemented Interfaces:
FIXSessionFactory
Standard session factory.
Engine used this factory for creation initiator and acceptor sessions.
User can replace current behave by using
setFIXSessionFactoryStrategy method.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAcceptorSession(SessionParameters sessionParameters) Creates the acceptor session.createAcceptorSession(SessionParameters details, FIXTransport transport) Creates the acceptor session.createInitiatorSession(SessionParameters details) Creates the initiator session.static FIXSessionFactorygetFactory(SessionParameters details) static voidReplace default strategy with own implementation.
-
Constructor Details
-
StandardFIXSessionFactory
public StandardFIXSessionFactory()
-
-
Method Details
-
setFIXSessionFactoryStrategy
Replace default strategy with own implementation.- Parameters:
astrategy- strategy- See Also:
-
createInitiatorSession
Description copied from interface:FIXSessionFactoryCreates the initiator session.- Specified by:
createInitiatorSessionin interfaceFIXSessionFactory- Parameters:
details- the session configuration- Returns:
- FIXSession the fix session
- Throws:
IOException- if the session cannot be created- See Also:
-
createAcceptorSession
Description copied from interface:FIXSessionFactoryCreates the acceptor session.- Specified by:
createAcceptorSessionin interfaceFIXSessionFactory- Parameters:
sessionParameters- the session configuration- Returns:
- FIXSession the fix session
- Throws:
IOException- if the session cannot be created- See Also:
-
createAcceptorSession
public FIXSession createAcceptorSession(SessionParameters details, FIXTransport transport) throws IOException Description copied from interface:FIXSessionFactoryCreates the acceptor session.- Specified by:
createAcceptorSessionin interfaceFIXSessionFactory- Parameters:
details- the session configurationtransport- the fix transport- Returns:
- FIXSession the fix session
- Throws:
IOException- if the session cannot be created- See Also:
-
getFactory
-