ActorId.getPartitionKey 方法
定义
Gets partition key for the ActorId.
Remarks:
<li>
<p>The actor service is always partitioned using uniform Integer64 partition scheme. Therefore the partition key is of long type. </p>
</li>
<li>
<p>The partition key is generated based on the <xref uid="microsoft.servicefabric.actors.ActorIdKind" data-throw-if-not-resolved="false" data-raw-source="ActorIdKind"></xref> and the id value as follows: <ul><li><p>a. ActorIdKind.String : CRC64 hash of the UTF8 bytes of the string id. </p></li><li><p>ActorIdKind.Guid: CRC64 hash of the bytes of the guid id. </p></li><li><p>ActorIdKind.Long: Actual value of the long id. </p></li></ul></p>
</li>
public long getPartitionKey()
返回
long
The key for locating the partition of the actor service that is responsible for this ActorId.