shouldContinueAfter

public boolean shouldContinueAfter(DeliveryStage stage)

Determines if the delivery execution should be continued after the given stage is completed.

If false is returned, the ongoing delivery run for the served shard will be stopped at this application node. The node will release the previously picked up shard.

To trigger the new delivery processing for this shard, use Delivery.deliverMessagesFrom(ShardIndex).

This method is called synchronously, meaning that the delivery process will not resume until a value is returned from this method call.

Return

true to continue the delivery, false to stop

Parameters

stage

the stage of delivery which has ended