public interface DataReceiver extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
closeWhenFinished()
This method waits for the
DataReceiver to finish its work and
closes the incoming queue as well as the internal thread pool after that. |
DataHandler |
getDataHandler() |
int |
getErrorCount()
Returns the number of errors that have been encountered while receiving
data.
|
RabbitQueue |
getQueue() |
void |
increaseErrorCount() |
int getErrorCount()
void closeWhenFinished()
DataReceiver to finish its work and
closes the incoming queue as well as the internal thread pool after that.
For making sure that all data is received this method should be preferred
compared to the Closeable.close() method which might close the receiver in
a rude way.void increaseErrorCount()
DataHandler getDataHandler()
RabbitQueue getQueue()
Copyright © 2017–2018. All rights reserved.