indexFor

public ShardIndex indexFor(Object entityId, TypeUrl entityStateType)

Determines the shard index for the messages heading to the entity with the specified target identifier.

Return

the shard index

Parameters

entityId

the identifier of the entity, to which the messages are dispatched

entityStateType

the type URL of the entity, to which the messages are dispatched