public interface Consumer<M extends Message> extends AutoCloseable
Message by batch.| Modifier and Type | Method and Description |
|---|---|
void |
accept(M message)
Consume a message.
|
void |
begin()
Begin a batch of messages.
|
void |
commit()
End of the batch message.
|
void |
rollback()
Called when there is an exception during
accept(Message) or commit(). |
closeCopyright © 2018 Nuxeo. All rights reserved.