readAll

public abstract Page<InboxMessage> readAll(ShardIndex index, int pageSize)

Reads the contents of the storage by the given shard index and returns the first page of the results.

The older items go first.

Return

the first page of the results

Parameters

index

the shard index to return the results for

pageSize

the maximum number of the elements per page