public abstract class AbstractFIXTransport extends AbstractObserverTransport implements FIXTransport
| Modifier and Type | Field and Description |
|---|---|
protected com.epam.fixengine.session.ExtendedFIXSession |
fixSession |
listenerObservers, log| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFIXTransport(Connection primary,
Connection backup) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(StreamListener listener)
Connect to stream.
|
void |
connectImpl() |
protected void |
createFIXSession() |
void |
disconnect(StreamListener listener)
Disconnect to stream.
|
void |
disconnectImpl() |
void |
dispose()
Dispose the transport.
|
boolean |
isConnect()
Check if stream is connected.
|
boolean |
isSessionConnected() |
void |
removeStateListener(TransportStateListener listener)
Remove connection state listener.
|
void |
setStateListener(TransportStateListener listener)
Sets connection state listener.
|
removeMessageStreamListener, setMessageStreamListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsendremoveMessageStreamListener, setMessageStreamListenerprotected AbstractFIXTransport(Connection primary, Connection backup)
public void setStateListener(TransportStateListener listener)
FIXTransportsetStateListener in interface FIXTransportlistener - the listenerpublic void removeStateListener(TransportStateListener listener)
FIXTransportremoveStateListener in interface FIXTransportlistener - the listenerpublic boolean isSessionConnected()
isSessionConnected in interface FIXTransportprotected void createFIXSession()
throws IOException
IOExceptionpublic void connectImpl()
throws IOException
IOExceptionpublic boolean isConnect()
StreamTransportisConnect in interface StreamTransportpublic void disconnectImpl()
throws IOException
IOExceptionpublic void connect(StreamListener listener) throws IOException
StreamTransportconnect in interface StreamTransportconnect in class AbstractObserverTransportlistener - the listenerIOException - if error occurredpublic void disconnect(StreamListener listener) throws IOException
StreamTransportdisconnect in interface StreamTransportdisconnect in class AbstractObserverTransportlistener - the listenerIOException - if error occurredpublic void dispose()
throws IOException
StreamTransportThis methods disconnect from stream and cleans all subscribed listeners.
dispose in interface StreamTransportdispose in class AbstractObserverTransportIOException - if error occurredCopyright © 2000–2025 EPAM Systems. All rights reserved.