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 FIXSessionFactory
getFactory
(SessionParameters details) static void
Replace 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:FIXSessionFactory
Creates the initiator session.- Specified by:
createInitiatorSession
in 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:FIXSessionFactory
Creates the acceptor session.- Specified by:
createAcceptorSession
in 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:FIXSessionFactory
Creates the acceptor session.- Specified by:
createAcceptorSession
in 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
-