Record Class AvisoDiscovery.Config

java.lang.Object
java.lang.Record
ecmwf.common.ectrans.notification.AvisoDiscovery.Config
Enclosing class:
AvisoDiscovery

public static record AvisoDiscovery.Config(URI base, String destination, String source, String directory, long after, long inventoryAt, long reconcileMillis, int maxEvents, int maxFiles, int maxDirectories, String pattern) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Config(URI base, String destination, String source, String directory, long after, long inventoryAt, long reconcileMillis, int maxEvents, int maxFiles, int maxDirectories, String pattern)
    Creates an instance of a Config record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the after record component.
    Returns the value of the base record component.
    Returns the value of the destination record component.
    Returns the value of the directory record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the inventoryAt record component.
    int
    Returns the value of the maxDirectories record component.
    int
    Returns the value of the maxEvents record component.
    int
    Returns the value of the maxFiles record component.
    Returns the value of the pattern record component.
    long
    Returns the value of the reconcileMillis record component.
    Returns the value of the source record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

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

    • Config

      public Config(URI base, String destination, String source, String directory, long after, long inventoryAt, long reconcileMillis, int maxEvents, int maxFiles, int maxDirectories, String pattern)
      Creates an instance of a Config record class.
      Parameters:
      base - the value for the base record component
      destination - the value for the destination record component
      source - the value for the source record component
      directory - the value for the directory record component
      after - the value for the after record component
      inventoryAt - the value for the inventoryAt record component
      reconcileMillis - the value for the reconcileMillis record component
      maxEvents - the value for the maxEvents record component
      maxFiles - the value for the maxFiles record component
      maxDirectories - the value for the maxDirectories record component
      pattern - the value for the pattern record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • base

      public URI base()
      Returns the value of the base record component.
      Returns:
      the value of the base record component
    • destination

      public String destination()
      Returns the value of the destination record component.
      Returns:
      the value of the destination record component
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • directory

      public String directory()
      Returns the value of the directory record component.
      Returns:
      the value of the directory record component
    • after

      public long after()
      Returns the value of the after record component.
      Returns:
      the value of the after record component
    • inventoryAt

      public long inventoryAt()
      Returns the value of the inventoryAt record component.
      Returns:
      the value of the inventoryAt record component
    • reconcileMillis

      public long reconcileMillis()
      Returns the value of the reconcileMillis record component.
      Returns:
      the value of the reconcileMillis record component
    • maxEvents

      public int maxEvents()
      Returns the value of the maxEvents record component.
      Returns:
      the value of the maxEvents record component
    • maxFiles

      public int maxFiles()
      Returns the value of the maxFiles record component.
      Returns:
      the value of the maxFiles record component
    • maxDirectories

      public int maxDirectories()
      Returns the value of the maxDirectories record component.
      Returns:
      the value of the maxDirectories record component
    • pattern

      public String pattern()
      Returns the value of the pattern record component.
      Returns:
      the value of the pattern record component