Record Class DefaultProcessingExceptionConfig

java.lang.Object
java.lang.Record
church.i18n.processing.config.DefaultProcessingExceptionConfig
All Implemented Interfaces:
ProcessingExceptionConfig

public record DefaultProcessingExceptionConfig(@NotNull MessageType defaultMessageType, @NotNull SecurityPolicy defaultSecurityPolicy, @NotNull Set<SecurityPolicy> exposeSecurityPolicies, @NotNull Set<SecurityPolicy> logSecurityPolicies, @NotNull ProcessingMessage failoverProcessingMessage) extends Record implements ProcessingExceptionConfig
  • Constructor Details

    • DefaultProcessingExceptionConfig

      public DefaultProcessingExceptionConfig(@NotNull @NotNull MessageType defaultMessageType, @NotNull @NotNull SecurityPolicy defaultSecurityPolicy, @NotNull @NotNull Set<SecurityPolicy> exposeSecurityPolicies, @NotNull @NotNull Set<SecurityPolicy> logSecurityPolicies, @NotNull @NotNull ProcessingMessage failoverProcessingMessage)
      Creates an instance of a DefaultProcessingExceptionConfig record class.
      Parameters:
      defaultMessageType - the value for the defaultMessageType record component
      defaultSecurityPolicy - the value for the defaultSecurityPolicy record component
      exposeSecurityPolicies - the value for the exposeSecurityPolicies record component
      logSecurityPolicies - the value for the logSecurityPolicies record component
      failoverProcessingMessage - the value for the failoverProcessingMessage record component
  • Method Details

    • builder

      @NotNull public static @NotNull DefaultProcessingExceptionConfig.Builder builder()
    • equals

      public boolean equals(@Nullable @Nullable 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.
    • toString

      @NotNull public @NotNull 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
    • defaultMessageType

      @NotNull public @NotNull MessageType defaultMessageType()
      Returns the value of the defaultMessageType record component.
      Specified by:
      defaultMessageType in interface ProcessingExceptionConfig
      Returns:
      the value of the defaultMessageType record component
    • defaultSecurityPolicy

      @NotNull public @NotNull SecurityPolicy defaultSecurityPolicy()
      Returns the value of the defaultSecurityPolicy record component.
      Specified by:
      defaultSecurityPolicy in interface ProcessingExceptionConfig
      Returns:
      the value of the defaultSecurityPolicy record component
    • exposeSecurityPolicies

      @NotNull public @NotNull Set<SecurityPolicy> exposeSecurityPolicies()
      Returns the value of the exposeSecurityPolicies record component.
      Specified by:
      exposeSecurityPolicies in interface ProcessingExceptionConfig
      Returns:
      the value of the exposeSecurityPolicies record component
    • logSecurityPolicies

      @NotNull public @NotNull Set<SecurityPolicy> logSecurityPolicies()
      Returns the value of the logSecurityPolicies record component.
      Specified by:
      logSecurityPolicies in interface ProcessingExceptionConfig
      Returns:
      the value of the logSecurityPolicies record component
    • failoverProcessingMessage

      @NotNull public @NotNull ProcessingMessage failoverProcessingMessage()
      Returns the value of the failoverProcessingMessage record component.
      Specified by:
      failoverProcessingMessage in interface ProcessingExceptionConfig
      Returns:
      the value of the failoverProcessingMessage record component