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

    Fields
    Modifier and Type
    Field
    Description
    private final @NonNull String
    The field for the connectionKey record component.
    private final @NonNull eu.cloudnetservice.driver.service.ServiceConfiguration
    The field for the serviceConfiguration record component.
    private final @NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshot
    The field for the serviceInfoSnapshot record component.
    private final @NonNull eu.cloudnetservice.driver.network.ssl.SSLConfiguration
    The field for the sslConfiguration record component.
    private final @NonNull eu.cloudnetservice.driver.network.HostAndPort
    The field for the targetListener record component.
    private static final Path
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    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)
    Creates an instance of a DocumentWrapperConfiguration record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the connectionKey record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
     
    @NonNull eu.cloudnetservice.driver.service.ServiceConfiguration
    Returns the value of the serviceConfiguration record component.
    @NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshot
    Returns the value of the serviceInfoSnapshot record component.
    @NonNull eu.cloudnetservice.driver.network.ssl.SSLConfiguration
    Returns the value of the sslConfiguration record component.
    @NonNull eu.cloudnetservice.driver.network.HostAndPort
    Returns the value of the targetListener record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • connectionKey

      @NonNull private final @NonNull String connectionKey
      The field for the connectionKey record component.
    • targetListener

      @NonNull private final @NonNull eu.cloudnetservice.driver.network.HostAndPort targetListener
      The field for the targetListener record component.
    • sslConfiguration

      @NonNull private final @NonNull eu.cloudnetservice.driver.network.ssl.SSLConfiguration sslConfiguration
      The field for the sslConfiguration record component.
    • serviceInfoSnapshot

      @NonNull private final @NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshot serviceInfoSnapshot
      The field for the serviceInfoSnapshot record component.
    • serviceConfiguration

      @NonNull private final @NonNull eu.cloudnetservice.driver.service.ServiceConfiguration serviceConfiguration
      The field for the serviceConfiguration record component.
    • WRAPPER_CONFIG_PATH

      private static final Path 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 a DocumentWrapperConfiguration record class.
      Parameters:
      connectionKey - the value for the connectionKey record component
      targetListener - the value for the targetListener record component
      sslConfiguration - the value for the sslConfiguration record component
      serviceInfoSnapshot - the value for the serviceInfoSnapshot record component
      serviceConfiguration - the value for the serviceConfiguration record component
  • Method Details

    • load

      @Factory @NonNull public static @NonNull WrapperConfiguration load()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • connectionKey

      @NonNull public @NonNull String connectionKey()
      Returns the value of the connectionKey record component.
      Specified by:
      connectionKey in interface WrapperConfiguration
      Returns:
      the value of the connectionKey record component
    • targetListener

      @NonNull public @NonNull eu.cloudnetservice.driver.network.HostAndPort targetListener()
      Returns the value of the targetListener record component.
      Specified by:
      targetListener in interface WrapperConfiguration
      Returns:
      the value of the targetListener record component
    • sslConfiguration

      @NonNull public @NonNull eu.cloudnetservice.driver.network.ssl.SSLConfiguration sslConfiguration()
      Returns the value of the sslConfiguration record component.
      Specified by:
      sslConfiguration in interface WrapperConfiguration
      Returns:
      the value of the sslConfiguration record component
    • serviceInfoSnapshot

      @NonNull public @NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshot serviceInfoSnapshot()
      Returns the value of the serviceInfoSnapshot record component.
      Specified by:
      serviceInfoSnapshot in interface WrapperConfiguration
      Returns:
      the value of the serviceInfoSnapshot record component
    • serviceConfiguration

      @NonNull public @NonNull eu.cloudnetservice.driver.service.ServiceConfiguration serviceConfiguration()
      Returns the value of the serviceConfiguration record component.
      Specified by:
      serviceConfiguration in interface WrapperConfiguration
      Returns:
      the value of the serviceConfiguration record component