|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.epam.mdp.full.session.client.TwinStreamChannel
public class TwinStreamChannel
This class provides the functionality to establish a connection with FAST servers, reading data and transforming them into FIX message.
Constructor Summary | |
---|---|
TwinStreamChannel(Transport primaryTransport,
Transport backupTransport,
FIXStreamListener listener,
FASTDecoderFactory decoderFactory,
com.epam.mdp.full.coders.stream.SeqNumHelper secNumHelper,
TransportType transportType)
|
Method Summary | |
---|---|
void |
connect()
Connect all transports to the servers. |
void |
disconnect()
Disconnect all transports. |
int |
getBackupPort()
Returns Port of client transport. |
FASTDecoderFactory |
getDecoderFactory()
Returns decoder associate with this channel. |
int |
getPort()
Returns Port of client transport. |
int |
getPrimaryPort()
Returns Port of client transport. |
boolean |
isStarted()
Returns true if at least one transport connected. |
void |
resetSeqNum(long newSeqNum)
Resets channel data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TwinStreamChannel(Transport primaryTransport, Transport backupTransport, FIXStreamListener listener, FASTDecoderFactory decoderFactory, com.epam.mdp.full.coders.stream.SeqNumHelper secNumHelper, TransportType transportType)
Method Detail |
---|
public FASTDecoderFactory getDecoderFactory()
IStreamChannel
getDecoderFactory
in interface IStreamChannel
public boolean isStarted()
isStarted
in interface IStreamChannel
true
if at least one transport connected.public int getPort()
getPort
in interface IStreamChannel
public int getPrimaryPort()
public int getBackupPort()
public void connect() throws java.io.IOException
connect
in interface IStreamChannel
java.io.IOException
- If connect does not establish.public void disconnect() throws java.io.IOException
disconnect
in interface IStreamChannel
java.io.IOException
- If connect does not closed.public void resetSeqNum(long newSeqNum)
IStreamChannel
resetSeqNum
in interface IStreamChannel
newSeqNum
- the new seq num
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |