380.4. Spring Boot Auto-Configuration


组件支持 18 个选项,如下所示。

名称描述默认类型

camel.component.yammer.access-token

访问令牌

 

字符串

camel.component.yammer.config.access-token

访问令牌

 

字符串

camel.component.yammer.config.consumer-key

消费者密钥

 

字符串

camel.component.yammer.config.consumer-secret

使用者 secret

 

字符串

camel.component.yammer.config.delay

millis 中轮询之间的延迟

5000

Long

camel.component.yammer.config.function

要使用的功能

 

字符串

camel.component.yammer.config.function-type

要使用的功能

 

YammerFunctionType

camel.component.yammer.config.limit

仅返回指定的消息数。适用于 threaded=true 和 threaded=extended。

-1

整数

camel.component.yammer.config.newer-than

返回比以数字字符串指定的消息 ID 的消息。这应在轮询新消息时使用。如果您正在查看消息,并且返回最新消息返回为 3516,则可以通过参数 newerThan=3516 发出请求,以确保您还没有在页面上获取消息的重复副本。

-1

整数

camel.component.yammer.config.older-than

返回比以数字字符串指定的消息 ID 旧消息。这可用于对消息进行分页。例如,如果您当前查看 20 个信息并且最旧的是第 2912,可以在您的请求中附加旧的Than=2912,以便在您看到之前获取 20 个信息。

-1

整数

camel.component.yammer.config.requestor

  

ApiRequestor

camel.component.yammer.config.threaded

threaded=true 将仅返回每个线程中的第一个消息。此参数用于显示消息线程折叠的应用程序。threaded=extended 将以最新活动的顺序返回线程启动器消息以及两个最新消息,因为它们在 Yammer Web 界面的默认视图中查看。

 

字符串

camel.component.yammer.config.use-json

如果要使用原始 JSON 而不是转换为 POJO,则设置为 true。

false

布尔值

camel.component.yammer.config.user-id

用户 ID

 

字符串

camel.component.yammer.consumer-key

消费者密钥

 

字符串

camel.component.yammer.consumer-secret

使用者 secret

 

字符串

camel.component.yammer.enabled

启用 yammer 组件

true

布尔值

camel.component.yammer.resolve-property-placeholders

启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。

true

布尔值

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.