jboss 拦截逾时等待毫秒的Wildfly预设值

mnemlml8  于 2022-11-23  发布在  其他
关注(0)|答案(1)|浏览(137)

我搜索了wildfly文档,但没有找到任何关于数据源blocking-timeout-wait-millis默认值的信息。那么,如果该元素没有在配置中指定,它会得到什么默认值呢?(因为名称中包含“millis”,至少单位是什么是清楚的)我也通过jmx检查了该值,但字段只是空的...

bqf10yzr

bqf10yzr1#

好了,在wildfly datasource schemas中找到了它:

<xs:complexType name="timeoutType">
<xs:sequence>
  <xs:element name="blocking-timeout-millis" type="xs:nonNegativeInteger" minOccurs="0">
    <xs:annotation>
      <xs:documentation>
        <![CDATA[[
          The blocking-timeout-millis element indicates the maximum time in
          milliseconds to block while waiting for a connection before throwing an exception.
          Note that this blocks only while waiting for a permit for a connection, and
          will never throw an exception if creating a new connection takes an inordinately
          long time. The default is 30000 (30 seconds).
         ]]>
      </xs:documentation>
    </xs:annotation>
  </xs:element>
...

相关问题