com.epam.fixengine
Class StandardFIXSessionFactory

java.lang.Object
  extended by com.epam.fixengine.StandardFIXSessionFactory
All Implemented Interfaces:
FIXSessionFactory

public class StandardFIXSessionFactory
extends Object
implements 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
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

StandardFIXSessionFactory

public StandardFIXSessionFactory()
Method Detail

setFIXSessionFactoryStrategy

public static void setFIXSessionFactoryStrategy(FIXSessionFactoryStrategy astrategy)
Replace default strategy with own implementation.

Parameters:
astrategy - strategy
See Also:
FIXSessionFactoryStrategy

createInitiatorSession

public FIXSession createInitiatorSession(SessionParameters details)
                                  throws IOException
Description copied from interface: FIXSessionFactory
Creates the initiator session.

Specified by:
createInitiatorSession in interface FIXSessionFactory
Parameters:
details - the session configuration
Returns:
FIXSession the fix session
Throws:
IOException - if the session cannot be created
See Also:
FIXSessionFactory.createInitiatorSession(SessionParameters)

createAcceptorSession

public FIXSession createAcceptorSession(SessionParameters details,
                                        FIXTransport transport)
                                 throws IOException
Description copied from interface: FIXSessionFactory
Creates the acceptor session.

Specified by:
createAcceptorSession in interface FIXSessionFactory
Parameters:
details - the session configuration
transport - the fix transport
Returns:
FIXSession the fix session
Throws:
IOException - if the session cannot be created
See Also:
FIXSessionFactory.createInitiatorSession(SessionParameters)

getFactory

public static FIXSessionFactory getFactory(SessionParameters details)


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.