public class DeferredCommitterImpl extends Object implements DeferredCommitter
| Constructor and Description |
|---|
DeferredCommitterImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(DataReceivedEvent event)
Adds a
DataReceivedEvent to commit all its messages later or to add to transaction |
void |
add(Message message)
Adds a
Message to commit it later or to add to transaction |
void |
commit()
Commits offset ranges from all
Messages and DataReceivedEvents
that were added to this DeferredCommitter since last commit |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewInstancepublic void add(Message message)
MessageAccumulatorMessage to commit it later or to add to transactionadd in interface MessageAccumulatormessage - a Messagepublic void add(DataReceivedEvent event)
MessageAccumulatorDataReceivedEvent to commit all its messages later or to add to transactionadd in interface MessageAccumulatorevent - a DataReceivedEventpublic void commit()
DeferredCommitterMessages and DataReceivedEvents
that were added to this DeferredCommitter since last commitcommit in interface DeferredCommitterCopyright © 2025. All rights reserved.