|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.epam.fixengine.StandardFIXSessionFactory
public class StandardFIXSessionFactory
Standard session factory.
Engine used this factory for creation initiator and acceptor sessions.
User can replace current behave by using setFIXSessionFactoryStrategy
method.
Constructor Summary | |
---|---|
StandardFIXSessionFactory()
|
Method Summary | |
---|---|
FIXSession |
createAcceptorSession(SessionParameters details,
FIXTransport transport)
Creates the acceptor session. |
FIXSession |
createInitiatorSession(SessionParameters details)
Creates the initiator session. |
static FIXSessionFactory |
getFactory(SessionParameters details)
|
static void |
setFIXSessionFactoryStrategy(FIXSessionFactoryStrategy astrategy)
Replace default strategy with own implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardFIXSessionFactory()
Method Detail |
---|
public static void setFIXSessionFactoryStrategy(FIXSessionFactoryStrategy astrategy)
astrategy
- strategyFIXSessionFactoryStrategy
public FIXSession createInitiatorSession(SessionParameters details) throws IOException
FIXSessionFactory
createInitiatorSession
in interface FIXSessionFactory
details
- the session configuration
IOException
- if the session cannot be createdFIXSessionFactory.createInitiatorSession(SessionParameters)
public FIXSession createAcceptorSession(SessionParameters details, FIXTransport transport) throws IOException
FIXSessionFactory
createAcceptorSession
in interface FIXSessionFactory
details
- the session configurationtransport
- the fix transport
IOException
- if the session cannot be createdFIXSessionFactory.createInitiatorSession(SessionParameters)
public static FIXSessionFactory getFactory(SessionParameters details)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |