alreadyPicked

public static PickUpOutcome alreadyPicked(WorkerId worker, Timestamp whenPicked)

Creates a new PickUpOutcome indicating that the shard is already picked up by the given worker in pickedUp message.


public Optional<ShardAlreadyPickedUp> alreadyPicked()

Returns ShardAlreadyPickedUp if this outcome indicates that shard could not be picked up as it's already picked up by another worker, or empty Optional otherwise.