Record Class ManagedApplicationProbe
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.ManagedApplicationProbe
- Record Components:
id- stable opaque component/probe identity, never a caller or payload identifierkind- operational probe purposecheck- actual host-admitted application callback; may throw when the activation is unavailable
public record ManagedApplicationProbe(String id, ManagedProbeKind kind, Callable<Boolean> check)
extends Record
Host-only callable for one exact activation generation; it is not a wire DTO or authority token.
Each actual call owns an in-flight slot until application code returns, including after a caller
timeout. Hosts supply bounded/coalescing execution rather than invoking probes under a monitor.
-
Constructor Summary
ConstructorsConstructorDescriptionManagedApplicationProbe(String id, ManagedProbeKind kind, Callable<Boolean> check) Validates a bounded host handle. -
Method Summary
Modifier and TypeMethodDescriptioncheck()Returns the value of thecheckrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ManagedApplicationProbe
Validates a bounded host handle.- Parameters:
id- nonblank safe opaque identity of at most128 characterskind- nonnull probe purposecheck- callback bound to the exact owning activation- Throws:
IllegalArgumentException- for invalid identityNullPointerException- for a missing kind or callback
-
-
Method Details
-
toString
-
hashCode
-
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). -
id
-
kind
-
check
-