Record Class CosIdProperties.Store
java.lang.Object
java.lang.Record
me.ahoo.cosid.spring.autoconfigure.CosIdProperties.Store
- Record Components:
type- the store type:jdbc,redis,mongo,zookeeper,remote(cosid-server) or aStoreProviderbean'stimeout- the operation timeout; default 2s, at most the segmentreserve-timeoutclient- the name of the bean to use as the client; without it the single bean of the store type's client type in the context (DataSource, Lettuce orRedisConnectionFactory,MongoClient,CuratorFramework), if anyoptions- backend options, such asinitSchema,uriorwait
- Enclosing class:
CosIdProperties
public static record CosIdProperties.Store(String type, Duration timeout, String client, Map<String,String> options)
extends Record
A store.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclient()Returns the value of theclientrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.options()Returns the value of theoptionsrecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
timeout
Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-
client
Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-