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, @NotNull Duration connectionTimeout)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordServer configuration settings. -
Constructor Summary
ConstructorsConstructorDescriptionEsdbProperties(@NotNull EsdbProperties.Server server, @NotNull Duration connectionTimeout) Creates an instance of aEsdbPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull DurationReturns the value of theconnectionTimeoutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull EsdbProperties.Serverserver()Returns the value of theserverrecord component.final StringtoString()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 aEsdbPropertiesrecord class.- Parameters:
server- the value for theserverrecord componentconnectionTimeout- the value for theconnectionTimeoutrecord 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 theserverrecord component.- Returns:
- the value of the
serverrecord component
-
connectionTimeout
Returns the value of theconnectionTimeoutrecord component.- Returns:
- the value of the
connectionTimeoutrecord component
-