SkillConversationIdFactory クラス

public class SkillConversationIdFactory
extends SkillConversationIdFactoryBase

メモリ内 {@link Map{TKey,TValue}} を使用して、ConversationReference インスタンスを格納および取得する SkillConversationIdFactory

コンストラクターの概要

コンストラクター 説明
SkillConversationIdFactory(Storage storage)

スキルConversationIdFactory のインスタンスを作成します。

メソッドの概要

修飾子と型 メソッドと説明
java.util.concurrent.CompletableFuture<java.lang.String> createSkillConversationId(SkillConversationIdFactoryOptions options)

スキル会話の会話 ID を作成します。

java.util.concurrent.CompletableFuture<java.lang.Void> deleteConversationReference(String skillConversationId)

ConversationReference を削除します。

java.util.concurrent.CompletableFuture<SkillConversationReference> getSkillConversationReference(String skillConversationId)

ConversationIDスキルの SkillConversationIdFactory#createSkillConversationId を使用して作成された SkillConversationReference を取得します。

メソッドの継承元: SkillConversationIdFactoryBase

メソッドの継承元: java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

コンストラクターの詳細

SkillConversationIdFactory

public SkillConversationIdFactory(Storage storage)

SkillConversationIdFactory のインスタンスを作成します。

パラメーター:

storage - ファクトリのストレージ インスタンス。

メソッドの詳細

createSkillConversationId

public CompletableFuture createSkillConversationId(SkillConversationIdFactoryOptions options)

スキル会話の会話 ID を作成します。

上書き:

SkillConversationIdFactory.createSkillConversationId(SkillConversationIdFactoryOptions options)

パラメーター:

options - 会話 ID を作成するためのパラメーターを含む SkillConversationIdFactoryOptions インスタンス。

戻り値:

スキルとの通信に使用される一意の会話 ID。
     It should be possible to use the returned String on a request URL and
     it should not contain special characters.

deleteConversationReference

public CompletableFuture deleteConversationReference(String skillConversationId)

ConversationReference を削除します。

上書き:

SkillConversationIdFactory.deleteConversationReference(String skillConversationId)

パラメーター:

skillConversationId - {@link CreateSkillConversationId(SkillConversationIdFactoryOptions,System#getT reading()#getCancellationToken())} を使用して作成されたスキル conversationId。

戻り値:

非同期操作を表す CompletableFuture

getSkillConversationReference

public CompletableFuture getSkillConversationReference(String skillConversationId)

skillConversationId の SkillConversationIdFactory#createSkillConversationId を使用して作成された SkillConversationReference を取得します。

上書き:

SkillConversationIdFactory.getSkillConversationReference(String skillConversationId)

パラメーター:

skillConversationId - SkillConversationIdFactory#createSkillConversationIdを使用して作成されたスキル conversationId。

戻り値:

skillConversationId の呼び出し元の ConversationReference。 見つからない場合は null。

適用対象