BatchDeliveryListener

public interface BatchDeliveryListener<I>

Listens to start and end of the 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.

Functions

Link copied to clipboard
public abstract void onEnd(I id)
Invoked after the batch delivery to the target with the given ID is ended.
Link copied to clipboard
public abstract void onStart(I id)
Invoked before the batch delivery to the target with the given ID is started.