Package org.hobbit.core.rabbit
Class DataSenderImpl.DataSenderConfirmHandler
java.lang.Object
org.hobbit.core.rabbit.DataSenderImpl.DataSenderConfirmHandler
- All Implemented Interfaces:
com.rabbitmq.client.ConfirmListener
- Enclosing class:
- DataSenderImpl
protected class DataSenderImpl.DataSenderConfirmHandler
extends Object
implements com.rabbitmq.client.ConfirmListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Semaphoreprivate intprivate final SortedMap<Long,DataSenderImpl.Message> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleAck(long deliveryTag, boolean multiple) voidhandleNack(long deliveryTag, boolean multiple) private voidsendData_unsecured(DataSenderImpl.Message message) voidsendDataWithConfirmation(com.rabbitmq.client.AMQP.BasicProperties properties, byte[] data) void
-
Field Details
-
maxBufferedMessageCount
-
unconfirmedMsgs
-
successfullySubmitted
private int successfullySubmitted
-
-
Constructor Details
-
DataSenderConfirmHandler
public DataSenderConfirmHandler(int messageConfirmBuffer)
-
-
Method Details
-
sendDataWithConfirmation
public void sendDataWithConfirmation(com.rabbitmq.client.AMQP.BasicProperties properties, byte[] data) throws IOException - Throws:
IOException
-
sendData_unsecured
- Throws:
IOException
-
handleAck
- Specified by:
handleAckin interfacecom.rabbitmq.client.ConfirmListener- Throws:
IOException
-
handleNack
- Specified by:
handleNackin interfacecom.rabbitmq.client.ConfirmListener- Throws:
IOException
-
waitForConfirms
- Throws:
InterruptedException
-