Package com.opencqrs.esdb.client
Record Class EsdbProperties
java.lang.Object
java.lang.Record
com.opencqrs.esdb.client.EsdbProperties
- Record Components:
server
- server configurationconnectionTimeout
- maximum duration to establish connection with the server
@ConfigurationProperties("esdb")
public record EsdbProperties(@NotNull EsdbProperties.Server server, @DefaultValue("PT5S") @NotNull Duration connectionTimeout)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Server configuration settings. -
Constructor Summary
ConstructorsConstructorDescriptionEsdbProperties
(@NotNull EsdbProperties.Server server, @NotNull Duration connectionTimeout) Creates an instance of aEsdbProperties
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Duration
Returns the value of theconnectionTimeout
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull EsdbProperties.Server
server()
Returns the value of theserver
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
EsdbProperties
public EsdbProperties(@NotNull @NotNull EsdbProperties.Server server, @NotNull @DefaultValue("PT5S") @NotNull Duration connectionTimeout) Creates an instance of aEsdbProperties
record class.- Parameters:
server
- the value for theserver
record componentconnectionTimeout
- the value for theconnectionTimeout
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
server
Returns the value of theserver
record component.- Returns:
- the value of the
server
record component
-
connectionTimeout
Returns the value of theconnectionTimeout
record component.- Returns:
- the value of the
connectionTimeout
record component
-