

サポート終了通知: 2026 年 5 月 20 日に、 AWS は のサポートを終了します AWS SimSpace Weaver。2026 年 5 月 20 日以降、 SimSpace Weaver コンソールまたは SimSpace Weaver リソースにアクセスできなくなります。詳細については、[AWS SimSpace Weaver 「サポート終了](https://docs.aws.amazon.com/simspaceweaver/latest/userguide/simspaceweaver-end-of-support.html)」を参照してください。

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# AllSubscriptionEvents および OwnershipChanges は前回の呼び出しからのイベントを含みます
<a name="working-with_app-sdk_misc_events-from-last-call"></a>

`Api::AllSubscriptionEvents()` および `Api::OwnershipChanges()` への呼び出しの戻り値が含むのは、最後の呼び出しからのイベントであり、**最後のティック**からのイベントではありません。以下の例では、`secondSubscriptionEvents` および `secondOwnershipChangeList` は空です。なぜなら、関数は最初の呼び出しの直後に呼び出されるからです。

10 ティック待ってから `Api::AllSubscriptionEvents()` および `Api::OwnershipChanges()` を呼び出した場合、その結果として (最後のティックではなく) 最後の 10 ティックからのイベントと変更の両方が含まれます。

**Example 例**  

```
Result<void> ProcessOwnershipChanges(Transaction& transaction)
{
    WEAVERRUNTIME_TRY(
        Api::SubscriptionChangeList firstSubscriptionEvents,
        Api::AllSubscriptionEvents(transaction));
    WEAVERRUNTIME_TRY(
        Api::OwnershipChangeList firstOwnershipChangeList,
        Api::OwnershipChanges(transaction));
    
    WEAVERRUNTIME_TRY(
        Api::SubscriptionChangeList secondSubscriptionEvents,
        Api::AllSubscriptionEvents(transaction));
    WEAVERRUNTIME_TRY(
        Api::OwnershipChangeList secondOwnershipChangeList,
        Api::OwnershipChanges(transaction));
    
    /**
     * secondSubscriptionEvents and secondOwnershipChangeList are 
     * both empty because there are no changes since the last call.
     */
}
```

**注記**  
関数 `AllSubscriptionEvents()` は実装されていますが、関数 `SubscriptionEvents()` は**実装されていません**。