SkillConversationIdFactoryBase 类

  • java.lang.Object
    • com.microsoft.bot.builder.skills.SkillConversationIdFactoryBase

public abstract class SkillConversationIdFactoryBase

定义工厂的接口,该工厂用于为技能对话创建唯一的会话 ID。

构造函数摘要

构造函数 说明
SkillConversationIdFactoryBase()

方法摘要

修饰符和类型 方法和描述

java.util.concurrent.CompletableFuture<java.lang.String>

createSkillConversationId(SkillConversationIdFactoryOptions options)

为技能对话创建会话 ID。

java.util.concurrent.CompletableFuture<java.lang.String>

createSkillConversationId(ConversationReference conversationReference)

为技能会话超级创建会话 ID。

abstract

java.util.concurrent.CompletableFuture<java.lang.Void>

deleteConversationReference(String skillConversationId)

ConversationReference 删除 。

java.util.concurrent.CompletableFuture<ConversationReference>

getConversationReference(String skillConversationId)

ConversationReference获取使用技能对话 ID 的 {@link CreateSkillConversationID (Microsoft#getBot () #getSchema () #getConversatio Reference () ,System#getThreading () #getCancellationToken () ) } 创建的

java.util.concurrent.CompletableFuture<SkillConversationReference>

getSkillConversationReference(String skillConversationId)

SkillConversationReference获取在 {@link 创建技能对话ID (技能对话IdFactoryOptions,System#getT 读取 () #getCancellationToken () ) } 期间用于技能对话ID 的 。

方法继承自 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

构造函数详细信息

SkillConversationIdFactoryBase

public SkillConversationIdFactoryBase()

方法详细信息

createSkillConversationId

public CompletableFuture createSkillConversationId(SkillConversationIdFactoryOptions options)

为技能对话创建会话 ID。

Parameters:

options - 包含 SkillConversationIdFactoryOptions 用于创建会话 ID 的参数的 实例。

Returns:

用于与技能通信的唯一会话 ID。 应该可以在请求 URL 上使用返回的字符串,并且不应包含特殊字符。

createSkillConversationId

public CompletableFuture createSkillConversationId(ConversationReference conversationReference)

为技能会话超级创建会话 ID。 在调用方的 上 ConversationReference

Parameters:

conversationReference - 技能的调用方 ConversationReference

Returns:

用于与技能通信的唯一会话 ID。 应该可以在请求 URL 上使用返回的字符串,并且不应包含特殊字符。

deleteConversationReference

public abstract CompletableFuture deleteConversationReference(String skillConversationId)

ConversationReference 删除 。

Parameters:

skillConversationId - 使用 {@link CreateSkillConversationId (SkillConversationIdFactoryOptions,System#getT reading () #getCancellationToken () ) } 创建的技能 conversationId。

Returns:

表示异步操作的 CompletableFuture

getConversationReference

public CompletableFuture getConversationReference(String skillConversationId)

获取使用 skillConversationId ConversationReference 的 {@link CreateSkillConversationId (Microsoft#getBot () #getSchema () #getConversatio Reference () ,System#getThreading () #getCancellationToken () ) } 创建的 。

Parameters:

skillConversationId - 使用 {@link CreateSkillConversationId (Microsoft#getBot () #getSchema () #getConversatio Reference () ,System#getThreading () #getCancellationToken () ) } 创建的技能 conversationId。

Returns:

skillConversationId 的调用方 ConversationReference 。 如果未找到,则为 null。

getSkillConversationReference

public CompletableFuture getSkillConversationReference(String skillConversationId)

SkillConversationReference获取在 {@link CreateSkillConversationId (SkillConversationIdFactoryOptions,System#getT reading () #getCancellationToken () ) } 期间用于 skillConversationId 的 。

Parameters:

skillConversationId - 使用 {@link CreateSkillConversationId (SkillConversationIdFactoryOptions,System#getT reading () #getCancellationToken () ) } 创建的技能 conversationId。

Returns:

skillConversationId 的 ConversationReference 调用方,带有 originatingAudience。 如果未找到,则为 Null。

适用于