com.epam.cmemdp.impl.transport
Class TransportMessageSubscriber
java.lang.Object
com.epam.cmemdp.impl.transport.TransportMessageSubscriber
public class TransportMessageSubscriber
- extends java.lang.Object
Provides ability to access to raw transport.
Field Summary |
protected Log |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final Log log
TransportMessageSubscriber
public TransportMessageSubscriber(MDChannel channel)
subscribeToIncremental
public void subscribeToIncremental(StreamListener streamListener)
throws java.io.IOException
- Throws:
java.io.IOException
setIncrementalStreamMessageListener
public void setIncrementalStreamMessageListener(StreamListener streamListener)
throws java.io.IOException
- Sets incremental stream message listener.
This listener will be call before messages will be processed.
Use this method in pair with removeIncrementalStreamMessageListener.
- Parameters:
streamListener
- the stream listener
- Throws:
java.io.IOException
removeIncrementalStreamMessageListener
public void removeIncrementalStreamMessageListener(StreamListener streamListener)
throws java.io.IOException
- Remove incremental stream message listener.
Use this method in pair with setIncrementalStreamMessageListener.
- Parameters:
streamListener
- the stream listener
- Throws:
java.io.IOException
removeSubscriptionToIncremental
public void removeSubscriptionToIncremental(StreamListener streamListener)
throws java.io.IOException
- Throws:
java.io.IOException
subscribeToRecovery
public void subscribeToRecovery(StreamListener streamListener)
throws java.io.IOException
- Throws:
java.io.IOException
removeSubscriptionToRecovery
public void removeSubscriptionToRecovery(StreamListener streamListener)
throws java.io.IOException
- Throws:
java.io.IOException
setRecoveryStreamMessageListener
public void setRecoveryStreamMessageListener(StreamListener streamListener)
throws java.io.IOException
- Sets recovery stream message listener.
This listener will be call before messages will be processed.
Use this method in pair with removeRecoveryStreamMessageListener.
- Parameters:
streamListener
- the stream listener
- Throws:
java.io.IOException
removeRecoveryStreamMessageListener
public void removeRecoveryStreamMessageListener(StreamListener streamListener)
throws java.io.IOException
- Remove recovery stream message listener.
Use this method in pair with setRecoveryStreamMessageListener.
- Parameters:
streamListener
- the stream listener
- Throws:
java.io.IOException
subscribeToInstrument
public void subscribeToInstrument(StreamListener streamListener)
throws java.io.IOException
- Throws:
java.io.IOException
removeSubscriptionToInstrument
public void removeSubscriptionToInstrument(StreamListener streamListener)
throws java.io.IOException
- Throws:
java.io.IOException
setInstrumentStreamStreamMessageListener
public void setInstrumentStreamStreamMessageListener(StreamListener streamListener)
throws java.io.IOException
- Sets instrument stream message listener.
This listener will be call before messages will be processed.
Use this method in pair with removeInstrumentStreamStreamMessageListener.
- Parameters:
streamListener
- the stream listener
- Throws:
java.io.IOException
removeInstrumentStreamStreamMessageListener
public void removeInstrumentStreamStreamMessageListener(StreamListener streamListener)
throws java.io.IOException
- Sets instrument stream message listener.
Use this method in pair with setInstrumentStreamStreamMessageListener.
- Parameters:
streamListener
- the stream listener
- Throws:
java.io.IOException
subscribeToReplay
public void subscribeToReplay(StreamListener streamListener)
throws java.io.IOException
- Throws:
java.io.IOException
removeSubscriptionToReplay
public void removeSubscriptionToReplay(StreamListener streamListener)
throws java.io.IOException
- Throws:
java.io.IOException
dispose
public void dispose()
Copyright © 2000-2014 EPAM Systems. All Rights Reserved.