225.3. Spring Boot Auto-Configuration


组件支持 29 选项,它们如下所列。

名称描述默认类型

camel.component.mina2.configuration.allow-default-codec

如果两个代码都为 null,则 mina 组件会安装默认的 codec,并且 textline 为 false。将 allowDefaultCodec 设置为 false 可防止 mina 组件安装默认 codec 作为过滤器链中的第一个元素。当另一个过滤器必须是过滤器链中的第一个过滤器(如 SSL 过滤器)时,这非常有用。

true

布尔值

camel.component.mina2.configuration.auto-start-tls

是否自动启动 SSL 握手。

true

布尔值

camel.component.mina2.configuration.cached-address

是否要创建 InetAddress 一次并重复使用。将其设置为 false 允许在网络中选取 DNS 更改。

true

布尔值

camel.component.mina2.configuration.client-mode

如果 clientMode 为 true,mina 使用者会将地址连接为 TCP 客户端。

false

布尔值

camel.component.mina2.configuration.codec

使用定制代码实施。

 

ProtocolCodecFactory

camel.component.mina2.configuration.decoder-max-line-length

设置文本协议解码器最大行长度。默认情况下,使用 Mina 本身的默认值为 1024。

1024

整数

camel.component.mina2.configuration.disconnect

使用后是否从 Mina 会话断开连接(关闭)。可用于使用者和制作者。

false

布尔值

camel.component.mina2.configuration.disconnect-on-no-reply

如果启用了同步,则此选项将指示 MinaConsumer,如果应该断开连接,则没有回复发送。

true

布尔值

camel.component.mina2.configuration.encoder-max-line-length

设置文本协议编码器最大行长度。默认情况下,会使用 Mina 本身的默认值,即 Integer.MAX_VALUE。

-1

整数

camel.component.mina2.configuration.encoding

您可以配置编码(a charset name),以用于 TCP 文本行 codec 和 UDP 协议。如果没有提供,Camel 将使用 JVM 默认 Charset

 

字符串

camel.component.mina2.configuration.filters

您可以设置要使用的 Mina IoFilters 列表。

 

list

camel.component.mina2.configuration.host

要使用的主机名。使用 localhost 或 0.0.0.0 作为本地服务器作为使用者。对于制作者,使用远程服务器的主机名或 ip 地址。

 

字符串

camel.component.mina2.configuration.lazy-session-creation

如果远程服务器启动时没有启动并运行,则会话可能会延迟以避免异常。

true

布尔值

camel.component.mina2.configuration.maximum-pool-size

TCP 和 UDP 的 worker 池中的 worker 线程数量

16

整数

camel.component.mina2.configuration.mina-logger

您可以启用 Apache MINA 日志记录过滤器。Apache MINA 使用 INFO 级别的 slf4j 日志记录记录所有输入和输出。

false

布尔值

camel.component.mina2.configuration.no-reply-log-level

如果启用了同步,则此选项将指示在日志没有回复发送时应使用的 MinaConsumer。

 

LoggingLevel

camel.component.mina2.configuration.ordered-thread-pool-executor

是否使用排序的线程池,确保事件在同一频道中按顺序处理。

true

布尔值

camel.component.mina2.configuration.port

端口号

 

整数

camel.component.mina2.configuration.protocol

要使用的协议

 

字符串

camel.component.mina2.configuration.ssl-context-parameters

配置 SSL 安全性。

 

SSLContextParameters

camel.component.mina2.configuration.sync

将 设置为将端点设置为单向或请求响应。

true

布尔值

camel.component.mina2.configuration.textline

仅用于 TCP。如果没有指定 codec,您可以使用此标志来指示基于文本的 codec;如果未指定或值为 false,则通过 TCP 假定 Object Serialization。

false

布尔值

camel.component.mina2.configuration.textline-delimiter

仅用于 TCP 和 textline=true。设置要使用的文本行分隔符。如果没有提供,Camel 将使用 DEFAULT。此分隔符用于标记文本末尾。

 

Mina2TextLineDelimiter

camel.component.mina2.configuration.timeout

您可以配置超时,以指定从远程服务器等待响应的时长。超时单位为毫秒,因此 60000 为 60 秒。

30000

Long

camel.component.mina2.configuration.transfer-exchange

仅用于 TCP。您可以通过线路来传输交换,而不是只是正文。以下字段会被传输:在正文、传出正文、错误正文、标题、错误标头、交换属性、交换异常。这要求对象是序列化的。Camel 将排除任何非序列化对象,并在 WARN 级别记录它。

false

布尔值

camel.component.mina2.configuration.write-timeout

将数据发送到 MINA 会话应花费的最大时间。默认为 10000 毫秒。

10000

Long

camel.component.mina2.enabled

启用 mina2 组件

true

布尔值

camel.component.mina2.resolve-property-placeholders

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

true

布尔值

camel.component.mina2.use-global-ssl-context-parameters

启用使用全局 SSL 上下文参数。

false

布尔值

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.