Package com.zendesk.maxwell.producer
Class InflightMessageList
- java.lang.Object
-
- com.zendesk.maxwell.producer.InflightMessageList
-
public class InflightMessageList extends Object
-
-
Constructor Summary
Constructors Constructor Description InflightMessageList(MaxwellContext context)InflightMessageList(MaxwellContext context, int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMessage(Position p, long eventTimestampMillis, long messageID)com.zendesk.maxwell.producer.InflightMessageList.InflightMessagecompleteMessage(Position p)voidfreeSlot(long messageID)intsize()longwaitForSlot()
-
-
-
Constructor Detail
-
InflightMessageList
public InflightMessageList(MaxwellContext context)
-
InflightMessageList
public InflightMessageList(MaxwellContext context, int capacity)
-
-
Method Detail
-
waitForSlot
public long waitForSlot() throws InterruptedException- Throws:
InterruptedException
-
freeSlot
public void freeSlot(long messageID)
-
addMessage
public void addMessage(Position p, long eventTimestampMillis, long messageID) throws InterruptedException
- Throws:
InterruptedException
-
completeMessage
public com.zendesk.maxwell.producer.InflightMessageList.InflightMessage completeMessage(Position p)
-
size
public int size()
-
-