SkillConversationIdFactory 類別

public class SkillConversationIdFactory
extends SkillConversationIdFactoryBase

SkillConversationIdFactory,在記憶體中使用 {@link Map{TKey,TValue}} 來儲存和擷取 ConversationReference 實例。

建構函式摘要

建構函式 Description
SkillConversationIdFactory(Storage storage)

建立 SkillConversationIdFactory 的實例。

方法摘要

修飾詞與類型 方法與描述
java.util.concurrent.CompletableFuture<java.lang.String> createSkillConversationId(SkillConversationIdFactoryOptions options)

建立技能交談的交談標識碼。

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

刪除 ConversationReference

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

取得針對技能對話標識碼使用 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)

建立技能交談的交談標識碼。

覆寫:

SkillConversationIdFactory.createSkillConversationId(SkillConversationIdFactoryOptions options)

參數:

options - SkillConversationIdFactoryOptions 實例,其中包含用於建立交談標識符的參數。

傳回:

用來與技能通訊的唯一交談標識符。
     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 建立的技能 conversationId(SkillConversationIdFactoryOptions,System#getT reading()#getCancellationToken()}} 。

傳回:

表示異步作的 CompletableFuture

getSkillConversationReference

public CompletableFuture getSkillConversationReference(String skillConversationId)

取得使用 skillConversationId SkillConversationIdFactory#createSkillConversationId 建立的 SkillConversationReference

覆寫:

SkillConversationIdFactory.getSkillConversationReference(String skillConversationId)

參數:

skillConversationId - 使用 SkillConversationIdFactory#createSkillConversationId建立的技能 conversationId。

傳回:

skillConversationId 的呼叫端 ConversationReference。 如果找不到,則為 null。

適用於