Interface JMSProducerSessionConfiguration


@ConfigurationProperties("micronaut.jms.producer-sessions") public interface JMSProducerSessionConfiguration
The configuration of the sessions that producer methods send with.
Since:
5.2.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The prefix of the configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Min(1L) int
     
    @Min(0L) int
     
     
    boolean
     
  • Field Details

  • Method Details

    • isEnabled

      @Bindable(defaultValue="true") boolean isEnabled()
      Returns:
      Whether producer methods reuse sessions, on one connection of each connection factory. When disabled, each send takes a connection from the pool and opens a session. Defaults to true.
    • getMaxIdle

      @Min(0L) @Bindable(defaultValue="8") @Min(0L) int getMaxIdle()
      Returns:
      The maximum number of idle sessions kept for each connection factory and session mode. While sends wait for a session, released sessions are kept for them up to getMaxActive(); the idle sessions above this number are closed once no send waits. Defaults to 8.
    • getMaxActive

      @Min(1L) @Bindable(defaultValue="32") @Min(1L) int getMaxActive()
      Returns:
      The maximum number of sessions of each connection factory that sends use at once, of all session modes. When all of them are borrowed, a send waits up to getMaxWait() for one to be released. Defaults to 32.
      Since:
      5.2.0
    • getMaxWait

      @Bindable(defaultValue="10s") Duration getMaxWait()
      Returns:
      How long a send waits for a session when getMaxActive() sessions are borrowed, after which the send fails. Defaults to 10 seconds.
      Since:
      5.2.0