Record Class DefaultConnectionDefinition

java.lang.Object
java.lang.Record
io.micronaut.data.connection.DefaultConnectionDefinition
Record Components:
name - The connection name
propagationBehavior - The propagation behaviour
timeout - The timeout
readOnlyValue - The read only
All Implemented Interfaces:
ConnectionDefinition

@Internal public record DefaultConnectionDefinition(@Nullable String name, ConnectionDefinition.Propagation propagationBehavior, @Nullable Duration timeout, Boolean readOnlyValue) extends Record implements ConnectionDefinition
Default implementation of the ConnectionDefinition interface.
Since:
4.0.0
Author:
Denis Stepanov
  • Constructor Details

    • DefaultConnectionDefinition

      public DefaultConnectionDefinition(ConnectionDefinition.Propagation propagationBehaviour)
    • DefaultConnectionDefinition

      public DefaultConnectionDefinition(String name, boolean readOnly)
    • DefaultConnectionDefinition

      public DefaultConnectionDefinition(@Nullable @Nullable String name, ConnectionDefinition.Propagation propagationBehavior, @Nullable @Nullable Duration timeout, Boolean readOnlyValue)
      Creates an instance of a DefaultConnectionDefinition record class.
      Parameters:
      name - the value for the name record component
      propagationBehavior - the value for the propagationBehavior record component
      timeout - the value for the timeout record component
      readOnlyValue - the value for the readOnlyValue record component
  • Method Details