Interface Consumer<M extends Message>
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractConsumer
,BlobMessageConsumer
,BlobWatermarkMessageConsumer
,DocumentMessageConsumer
A consumer consumes
Message
by batch.- Since:
- 9.1
-
Method Summary
Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
begin
void begin()Begin a batch of messages. -
accept
Consume a message. -
commit
void commit()End of the batch message. -
rollback
void rollback()Called when there is an exception duringaccept(Message)
orcommit()
.
-