Record Class ManagedHostedResources.Entry
java.lang.Object
java.lang.Record
org.j7m.middleware.application.components.ManagedHostedResources.Entry
- Record Components:
factory- actual backend implementationworker- fixed local worker identity, without a remote authentication claimmaximumBudget- finite positive invocation cap, at most one day
- Enclosing class:
ManagedHostedResources
public static record ManagedHostedResources.Entry(ManagedHostedResources.Factory factory, org.j7m.middleware.security.api.SecurityContext worker, Duration maximumBudget)
extends Record
Borrowed trusted factory and immutable worker authority, never copied from application metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(ManagedHostedResources.Factory factory, org.j7m.middleware.security.api.SecurityContext worker, Duration maximumBudget) Rejects remote/system impersonation claims and invalid finite budgets. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.factory()Returns the value of thefactoryrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themaximumBudgetrecord component.toString()Returns a diagnostic omitting principal and credential data.org.j7m.middleware.security.api.SecurityContextworker()Returns the value of theworkerrecord component.
-
Constructor Details
-
Entry
public Entry(ManagedHostedResources.Factory factory, org.j7m.middleware.security.api.SecurityContext worker, Duration maximumBudget) Rejects remote/system impersonation claims and invalid finite budgets.- Parameters:
factory- borrowed backend implementationworker- fixed local worker authoritymaximumBudget- positive budget up to one day- Throws:
NullPointerException- for null inputIllegalArgumentException- for remote authentication claims or invalid budget
-
-
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). -
factory
-
worker
-
maximumBudget
Returns the value of themaximumBudgetrecord component.- Returns:
- the value of the
maximumBudgetrecord component
-