Record Class ManagedProbeSettings

java.lang.Object
java.lang.Record
org.j7m.middleware.application.components.ManagedProbeSettings
Record Components:
maximumConcurrent - physically running callbacks,1..64
maximumRegistrations - monitored activations,1..1024
interval - sampling delay, positive and at most one minute
budget - per-activation inspection wait, positive and at most one minute
freshness - observation validity, one millisecond through one minute

public record ManagedProbeSettings(int maximumConcurrent, int maximumRegistrations, Duration interval, Duration budget, Duration freshness) extends Record
Trusted host configuration for automatic managed probes; never application-selected policy. Bounds apply to one manager's physical workers and activation registrations. Sampling uses a shared monotonic per-activation budget, and export readiness must expire after freshness.
  • Constructor Details

    • ManagedProbeSettings

      public ManagedProbeSettings(int maximumConcurrent, int maximumRegistrations, Duration interval, Duration budget, Duration freshness)
      Validates finite capacities and intervals without starting workers.
      Parameters:
      maximumConcurrent - physical callback bound
      maximumRegistrations - activation registration bound
      interval - sampling delay
      budget - total inspection wait
      freshness - observation validity
      Throws:
      IllegalArgumentException - for an out-of-range value
      NullPointerException - for a null duration
  • Method Details

    • defaults

      public static ManagedProbeSettings defaults()
      Returns the bounded development profile: four workers,64 activations,100ms sampling/wait, and two-second observation validity. Hosts can install a different validated profile.
      Returns:
      immutable default host settings
    • newMonitor

      public ManagedProbeMonitor newMonitor()
      Creates a new owned monitor honoring these settings; the caller owns its cleanup.
      Returns:
      new monitor with no registered applications
    • 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.
    • maximumConcurrent

      public int maximumConcurrent()
      Returns the value of the maximumConcurrent record component.
      Returns:
      the value of the maximumConcurrent record component
    • maximumRegistrations

      public int maximumRegistrations()
      Returns the value of the maximumRegistrations record component.
      Returns:
      the value of the maximumRegistrations record component
    • interval

      public Duration interval()
      Returns the value of the interval record component.
      Returns:
      the value of the interval record component
    • budget

      public Duration budget()
      Returns the value of the budget record component.
      Returns:
      the value of the budget record component
    • freshness

      public Duration freshness()
      Returns the value of the freshness record component.
      Returns:
      the value of the freshness record component