public interface BatchDeliveryListener<I>
Inbox
batch delivery.
When the consequent messages in the Inbox
are targeting the same entity,
the delivery may be optimized by using either the same transaction or caching the storage
operations while the batch is delivered.
The implementing classes may define their own behavior and react upon such use cases.
Modifier and Type | Method and Description |
---|---|
void |
onEnd(I id)
Invoked after the batch delivery to the target with the given ID is ended.
|
void |
onStart(I id)
Invoked before the batch delivery to the target with the given ID is started.
|
void onStart(I id)
id
- the ID of the delivery targetvoid onEnd(I id)
id
- the ID of the delivery target