Package io.micronaut.rabbitmq.connect
Class RabbitConnectionFactoryConfig.RpcConfiguration
java.lang.Object
io.micronaut.rabbitmq.connect.RabbitConnectionFactoryConfig.RpcConfiguration
- Direct Known Subclasses:
ClusterRabbitConnectionFactoryConfig.DefaultRpcConfiguration
,SingleRabbitConnectionFactoryConfig.DefaultRpcConfiguration
- Enclosing class:
- RabbitConnectionFactoryConfig
Configuration for RPC.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
The default timeout before cancelling an RPC call. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setTimeout
(@Nullable Duration timeout) Sets the timeout duration before cancelling an RPC call.
-
Field Details
-
DEFAULT_TIMEOUT_SECONDS
public static final long DEFAULT_TIMEOUT_SECONDSThe default timeout before cancelling an RPC call.- See Also:
-
-
Constructor Details
-
RpcConfiguration
public RpcConfiguration()
-
-
Method Details
-
getTimeout
- Returns:
- The timeout duration before cancelling an RPC call.
-
setTimeout
Sets the timeout duration before cancelling an RPC call. Default 10L seconds.- Parameters:
timeout
- The timeout
-