public class TransportMessageSubscriber extends Object
Modifier and Type | Field and Description |
---|---|
protected com.epam.common.logging.Log |
log |
Constructor and Description |
---|
TransportMessageSubscriber(MDChannel channel) |
public TransportMessageSubscriber(MDChannel channel)
public void subscribeToIncremental(StreamListener streamListener) throws IOException
IOException
public void setIncrementalStreamMessageListener(StreamListener streamListener) throws IOException
This listener will be call before messages will be processed. Use this method in pair with removeIncrementalStreamMessageListener.
streamListener
- the stream listenerIOException
public void removeIncrementalStreamMessageListener(StreamListener streamListener) throws IOException
Use this method in pair with setIncrementalStreamMessageListener.
streamListener
- the stream listenerIOException
public void removeSubscriptionToIncremental(StreamListener streamListener) throws IOException
IOException
public void subscribeToRecovery(StreamListener streamListener) throws IOException
IOException
public void removeSubscriptionToRecovery(StreamListener streamListener) throws IOException
IOException
public void setRecoveryStreamMessageListener(StreamListener streamListener) throws IOException
This listener will be call before messages will be processed. Use this method in pair with removeRecoveryStreamMessageListener.
streamListener
- the stream listenerIOException
public void removeRecoveryStreamMessageListener(StreamListener streamListener) throws IOException
Use this method in pair with setRecoveryStreamMessageListener.
streamListener
- the stream listenerIOException
public void subscribeToInstrument(StreamListener streamListener) throws IOException
IOException
public void removeSubscriptionToInstrument(StreamListener streamListener) throws IOException
IOException
public void setInstrumentStreamStreamMessageListener(StreamListener streamListener) throws IOException
This listener will be call before messages will be processed. Use this method in pair with removeInstrumentStreamStreamMessageListener.
streamListener
- the stream listenerIOException
public void removeInstrumentStreamStreamMessageListener(StreamListener streamListener) throws IOException
Use this method in pair with setInstrumentStreamStreamMessageListener.
streamListener
- the stream listenerIOException
public void subscribeToReplay(StreamListener streamListener) throws IOException
IOException
public void removeSubscriptionToReplay(StreamListener streamListener) throws IOException
IOException
public void dispose()
Copyright © 2000–2025 EPAM Systems. All rights reserved.