Record Class DocumentWrapperConfiguration
java.lang.Object
java.lang.Record
eu.cloudnetservice.wrapper.configuration.DocumentWrapperConfiguration
- All Implemented Interfaces:
WrapperConfiguration
public record DocumentWrapperConfiguration(@NonNull String connectionKey, @NonNull eu.cloudnetservice.driver.network.HostAndPort targetListener, @NonNull eu.cloudnetservice.driver.network.ssl.SSLConfiguration sslConfiguration, @NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshot serviceInfoSnapshot, @NonNull eu.cloudnetservice.driver.service.ServiceConfiguration serviceConfiguration)
extends Record
implements WrapperConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theconnectionKeyrecord component.private final @NonNull eu.cloudnetservice.driver.service.ServiceConfigurationThe field for theserviceConfigurationrecord component.private final @NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshotThe field for theserviceInfoSnapshotrecord component.private final @NonNull eu.cloudnetservice.driver.network.ssl.SSLConfigurationThe field for thesslConfigurationrecord component.private final @NonNull eu.cloudnetservice.driver.network.HostAndPortThe field for thetargetListenerrecord component.private static final Path -
Constructor Summary
ConstructorsConstructorDescriptionDocumentWrapperConfiguration(@NonNull String connectionKey, @NonNull eu.cloudnetservice.driver.network.HostAndPort targetListener, @NonNull eu.cloudnetservice.driver.network.ssl.SSLConfiguration sslConfiguration, @NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshot serviceInfoSnapshot, @NonNull eu.cloudnetservice.driver.service.ServiceConfiguration serviceConfiguration) Creates an instance of aDocumentWrapperConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static @NonNull WrapperConfigurationload()@NonNull eu.cloudnetservice.driver.service.ServiceConfigurationReturns the value of theserviceConfigurationrecord component.@NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshotReturns the value of theserviceInfoSnapshotrecord component.@NonNull eu.cloudnetservice.driver.network.ssl.SSLConfigurationReturns the value of thesslConfigurationrecord component.@NonNull eu.cloudnetservice.driver.network.HostAndPortReturns the value of thetargetListenerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
connectionKey
The field for theconnectionKeyrecord component. -
targetListener
The field for thetargetListenerrecord component. -
sslConfiguration
@NonNull private final @NonNull eu.cloudnetservice.driver.network.ssl.SSLConfiguration sslConfigurationThe field for thesslConfigurationrecord component. -
serviceInfoSnapshot
@NonNull private final @NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshot serviceInfoSnapshotThe field for theserviceInfoSnapshotrecord component. -
serviceConfiguration
@NonNull private final @NonNull eu.cloudnetservice.driver.service.ServiceConfiguration serviceConfigurationThe field for theserviceConfigurationrecord component. -
WRAPPER_CONFIG_PATH
-
-
Constructor Details
-
DocumentWrapperConfiguration
public DocumentWrapperConfiguration(@NonNull @NonNull String connectionKey, @NonNull @NonNull eu.cloudnetservice.driver.network.HostAndPort targetListener, @NonNull @NonNull eu.cloudnetservice.driver.network.ssl.SSLConfiguration sslConfiguration, @NonNull @NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshot serviceInfoSnapshot, @NonNull @NonNull eu.cloudnetservice.driver.service.ServiceConfiguration serviceConfiguration) Creates an instance of aDocumentWrapperConfigurationrecord class.- Parameters:
connectionKey- the value for theconnectionKeyrecord componenttargetListener- the value for thetargetListenerrecord componentsslConfiguration- the value for thesslConfigurationrecord componentserviceInfoSnapshot- the value for theserviceInfoSnapshotrecord componentserviceConfiguration- the value for theserviceConfigurationrecord component
-
-
Method Details
-
load
-
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). -
connectionKey
Returns the value of theconnectionKeyrecord component.- Specified by:
connectionKeyin interfaceWrapperConfiguration- Returns:
- the value of the
connectionKeyrecord component
-
targetListener
Returns the value of thetargetListenerrecord component.- Specified by:
targetListenerin interfaceWrapperConfiguration- Returns:
- the value of the
targetListenerrecord component
-
sslConfiguration
Returns the value of thesslConfigurationrecord component.- Specified by:
sslConfigurationin interfaceWrapperConfiguration- Returns:
- the value of the
sslConfigurationrecord component
-
serviceInfoSnapshot
@NonNull public @NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshot serviceInfoSnapshot()Returns the value of theserviceInfoSnapshotrecord component.- Specified by:
serviceInfoSnapshotin interfaceWrapperConfiguration- Returns:
- the value of the
serviceInfoSnapshotrecord component
-
serviceConfiguration
@NonNull public @NonNull eu.cloudnetservice.driver.service.ServiceConfiguration serviceConfiguration()Returns the value of theserviceConfigurationrecord component.- Specified by:
serviceConfigurationin interfaceWrapperConfiguration- Returns:
- the value of the
serviceConfigurationrecord component
-