com.epam.mdp.full.session.client
Interface IStreamChannel

All Known Subinterfaces:
ITwinStreamChannel
All Known Implementing Classes:
StreamChannel, TwinBovespaStreamChannel, TwinStreamChannel

public interface IStreamChannel


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.
 void resetSeqNum(long newSeqNum)
          Resets channel data.
 

Method Detail

isStarted

boolean isStarted()
Returns true if at least one transport connected.

Returns:
true if at least one transport connected.

getPort

int getPort()
Returns Port of client transport.

Returns:
Port of client transport.

connect

void connect()
             throws java.io.IOException
Connect all transports to the servers.

Throws:
java.io.IOException - If connect does not establish.

disconnect

void disconnect()
                throws java.io.IOException
Disconnect all transports.

Throws:
java.io.IOException - If connect does not closed.

getDecoderFactory

FASTDecoderFactory getDecoderFactory()
Returns decoder associate with this channel.

Returns:
Decoder

resetSeqNum

void resetSeqNum(long newSeqNum)
Resets channel data.

Parameters:
newSeqNum - the new seq num


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