|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epam.mdp.full.session.client.StreamChannel
public class StreamChannel
This class provides the functionality to establish a connection with FAST servers, reading data and transforming them into FIX message.
| Constructor Summary | |
|---|---|
StreamChannel(Transport transport,
FIXStreamListener listener,
FASTDecoderFactory factoryDecoder,
com.epam.mdp.full.coders.stream.SeqNumHelper secNumHelper,
TransportType transportType)
Creates the FastChannel with specified version. |
|
StreamChannel(Transport transport,
FIXStreamListener listener,
TemplateContainer templateContainer,
ChannelVersion chanelVersion,
TransportType transportType)
Deprecated. |
|
StreamChannel(Transport transport,
FIXStreamListener listener,
TemplateContainer templateContainer,
TransportType transportType)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
connect()
Connect all transports to the servers. |
void |
disconnect()
Disconnect all transports. |
FASTDecoderFactory |
getDecoderFactory()
Returns decoder associate with this channel. |
int |
getPort()
Returns Port of client transport. |
boolean |
isStarted()
Returns true if at least one transport connected. |
boolean |
onNextMessageReceived(long seqNum)
|
void |
reset(long seqNum)
|
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 |
|---|
@Deprecated
public StreamChannel(Transport transport,
FIXStreamListener listener,
TemplateContainer templateContainer,
TransportType transportType)
transport - Instance of Client transport.listener - Instance of FAST listener.templateContainer - Container of FAST templates.
@Deprecated
public StreamChannel(Transport transport,
FIXStreamListener listener,
TemplateContainer templateContainer,
ChannelVersion chanelVersion,
TransportType transportType)
FastChannel with specified version.
transport - Instance of Client transport.listener - Instance of FAST listener.templateContainer - Container of FAST templates.
public StreamChannel(Transport transport,
FIXStreamListener listener,
FASTDecoderFactory factoryDecoder,
com.epam.mdp.full.coders.stream.SeqNumHelper secNumHelper,
TransportType transportType)
FastChannel with specified version.
transport - Instance of Client transport.listener - Instance of FAST listener.| Method Detail |
|---|
public boolean isStarted()
isStarted in interface IStreamChannel true if at least one transport connected.public int getPort()
getPort in interface IStreamChannel
public void connect()
throws java.io.IOException
connect in interface IStreamChanneljava.io.IOException - If connect does not establish.
public void disconnect()
throws java.io.IOException
disconnect in interface IStreamChanneljava.io.IOException - If connect does not closed.public FASTDecoderFactory getDecoderFactory()
IStreamChannel
getDecoderFactory in interface IStreamChannelpublic boolean onNextMessageReceived(long seqNum)
public void resetSeqNum(long newSeqNum)
IStreamChannel
resetSeqNum in interface IStreamChannelnewSeqNum - the new seq numpublic void reset(long seqNum)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||