public class FastChannel extends Object implements IFASTChannel
| Constructor and Description |
|---|
FastChannel(com.epam.common.transport.Transport transport,
FIXFASTListener listener,
FASTDecoderFactory factoryDecoder,
com.epam.fast.full.coders.stream.SequenceObserver sequenceObserver,
TransportType transportType)
Creates the
FastChannel with specified version. |
FastChannel(com.epam.common.transport.Transport transport,
FIXFASTListener listener,
TemplateContainer templateContainer,
ChannelVersion chanelVersion,
TransportType transportType)
Deprecated.
|
FastChannel(com.epam.common.transport.Transport transport,
FIXFASTListener listener,
TemplateContainer templateContainer,
TransportType transportType)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
@Deprecated public FastChannel(com.epam.common.transport.Transport transport, FIXFASTListener listener, TemplateContainer templateContainer, TransportType transportType)
transport - Instance of Client transport.listener - Instance of FAST listener.templateContainer - Container of FAST templates.@Deprecated public FastChannel(com.epam.common.transport.Transport transport, FIXFASTListener 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 FastChannel(com.epam.common.transport.Transport transport,
FIXFASTListener listener,
FASTDecoderFactory factoryDecoder,
com.epam.fast.full.coders.stream.SequenceObserver sequenceObserver,
TransportType transportType)
FastChannel with specified version.transport - Instance of Client transport.listener - Instance of FAST listener.public boolean isStarted()
isStarted in interface IFASTChannel true if at least one transport connected.public int getPort()
getPort in interface IFASTChannelpublic void connect()
throws IOException
connect in interface IFASTChannelIOException - If connect does not establish.public void disconnect()
throws IOException
disconnect in interface IFASTChannelIOException - If connect does not closed.public FASTDecoderFactory getDecoderFactory()
IFASTChannelgetDecoderFactory in interface IFASTChannelpublic boolean onNextMessageReceived(long seqNum)
public void resetSeqNum(long newSeqNum)
IFASTChannelresetSeqNum in interface IFASTChannelnewSeqNum - the new seq numpublic void reset(long seqNum)
Copyright © 2000–2025 EPAM Systems. All rights reserved.