protected class DataSenderImpl.DataSenderConfirmHandler extends Object implements com.rabbitmq.client.ConfirmListener
| Modifier and Type | Field and Description |
|---|---|
private Semaphore |
maxBufferedMessageCount |
private int |
successfullySubmitted |
private SortedMap<Long,DataSenderImpl.Message> |
unconfirmedMsgs |
| Constructor and Description |
|---|
DataSenderConfirmHandler(int messageConfirmBuffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleAck(long deliveryTag,
boolean multiple) |
void |
handleNack(long deliveryTag,
boolean multiple) |
private void |
sendData_unsecured(DataSenderImpl.Message message) |
void |
sendDataWithConfirmation(com.rabbitmq.client.AMQP.BasicProperties properties,
byte[] data) |
void |
waitForConfirms() |
private final Semaphore maxBufferedMessageCount
private final SortedMap<Long,DataSenderImpl.Message> unconfirmedMsgs
private int successfullySubmitted
public DataSenderConfirmHandler(int messageConfirmBuffer)
public void sendDataWithConfirmation(com.rabbitmq.client.AMQP.BasicProperties properties,
byte[] data)
throws IOException
IOExceptionprivate void sendData_unsecured(DataSenderImpl.Message message) throws IOException
IOExceptionpublic void handleAck(long deliveryTag,
boolean multiple)
throws IOException
handleAck in interface com.rabbitmq.client.ConfirmListenerIOExceptionpublic void handleNack(long deliveryTag,
boolean multiple)
throws IOException
handleNack in interface com.rabbitmq.client.ConfirmListenerIOExceptionpublic void waitForConfirms()
throws InterruptedException
InterruptedExceptionCopyright © 2017–2018. All rights reserved.