Package io.vertigo.core.node.config
Record Class ConnectorConfig
java.lang.Object
java.lang.Record
io.vertigo.core.node.config.ConnectorConfig
- Record Components:
apiClassOpt- the api class of the connectorimplClass- the impl class of the connectorparams- the params
public record ConnectorConfig(Optional<Class<? extends Connector>> apiClassOpt, Class<? extends Connector> implClass, List<Param> params)
extends Record
This class defines the configuration of a connector.
A connector is defined by
- an api class
- a implementation class
- a list of params
The same connector can be used many times with distincts params
- for example : two connections to differents timeseries databases
- Author:
- mlaroche
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapiClassOptrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theimplClassrecord component.params()Returns the value of theparamsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConnectorConfig
public ConnectorConfig(Optional<Class<? extends Connector>> apiClassOpt, Class<? extends Connector> implClass, List<Param> params) Creates an instance of aConnectorConfigrecord class.- Parameters:
apiClassOpt- the value for theapiClassOptrecord componentimplClass- the value for theimplClassrecord componentparams- the value for theparamsrecord 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). -
apiClassOpt
Returns the value of theapiClassOptrecord component.- Returns:
- the value of the
apiClassOptrecord component
-
implClass
Returns the value of theimplClassrecord component.- Returns:
- the value of the
implClassrecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-