newestMessageToDeliver

public abstract Optional<InboxMessage> newestMessageToDeliver(ShardIndex index)

Finds the newest message to deliver in the given shard.

Return

the message found or Optional.empty() if there are no messages to deliver in the specified shard

Parameters

index

the shard index to look in