Class RabbitConnectionFactoryConfig.RpcConfiguration

java.lang.Object
io.micronaut.rabbitmq.connect.RabbitConnectionFactoryConfig.RpcConfiguration
Direct Known Subclasses:
ClusterRabbitConnectionFactoryConfig.DefaultRpcConfiguration, SingleRabbitConnectionFactoryConfig.DefaultRpcConfiguration
Enclosing class:
RabbitConnectionFactoryConfig

public static class RabbitConnectionFactoryConfig.RpcConfiguration extends Object
Configuration for RPC.
  • Field Details

    • DEFAULT_TIMEOUT_SECONDS

      public static final long DEFAULT_TIMEOUT_SECONDS
      The default timeout before cancelling an RPC call.
      See Also:
  • Constructor Details

    • RpcConfiguration

      public RpcConfiguration()
  • Method Details

    • getTimeout

      public Optional<Duration> getTimeout()
      Returns:
      The timeout duration before cancelling an RPC call.
    • setTimeout

      public void setTimeout(@Nullable @Nullable Duration timeout)
      Sets the timeout duration before cancelling an RPC call. Default 10L seconds.
      Parameters:
      timeout - The timeout