onShardAlreadyPicked

Called if Delivery could not pick up a shard because it was already picked up by another worker.

Returns an action to take in relation to the failure.

By default this callback returns an Action that does nothing. This means that an empty Optional will be returned from the deliverMessagesFrom() method.

Parameters

failure

contains an information about the worker who owns the session and gives access to predefined Actions to handle the error