com.epam.mdp.adaptor.api.tranport
Interface StreamTransport

All Known Implementing Classes:
FIXFastTransport

public interface StreamTransport


Method Summary
 void connect(StreamListener listener)
          Connect to stream.
 void disconnect(StreamListener listener)
          Disconnect to stream.
 void dispose()
          Dispose the transport.
 boolean isConnect()
          Check if stream is connected.
 void removeMessageStreamListener(StreamListener listener)
          Remove message stream listener.
 void setMessageStreamListener(StreamListener listener)
          Sets message stream listener.
 

Method Detail

setMessageStreamListener

void setMessageStreamListener(StreamListener listener)
Sets message stream listener.

This listener will call on every received messages before all subscribed listeners. Users can listen every pre processed messages.

Parameters:
listener - the listener

removeMessageStreamListener

void removeMessageStreamListener(StreamListener listener)
Remove message stream listener.

Parameters:
listener - the listener

connect

void connect(StreamListener listener)
             throws java.io.IOException
Connect to stream.

Parameters:
listener - the listener
Throws:
java.io.IOException - if error occurred

isConnect

boolean isConnect()
Check if stream is connected.

Returns:
boolean

disconnect

void disconnect(StreamListener listener)
                throws java.io.IOException
Disconnect to stream.

Parameters:
listener - the listener
Throws:
java.io.IOException - if error occurred

dispose

void dispose()
             throws java.io.IOException
Dispose the transport.

This methods disconnect from stream and cleans all subscribed listeners.

Throws:
java.io.IOException - if error occurred


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