Record Class ManagedDeduplicationPolicy.Registration
java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedDeduplicationPolicy.Registration
- Record Components:
backend- scope-authorized D12 facadecodec- explicit bounded data-only codecretention- retained outcome duration, positive milliseconds at most one daycleanupBudget- bounded UNKNOWN-only cleanup budget, positive milliseconds at most30seconds
- Enclosing class:
ManagedDeduplicationPolicy
public static record ManagedDeduplicationPolicy.Registration(org.j7m.middleware.distributed.DeduplicatedRpc backend, ManagedPayloadCodec codec, Duration retention, Duration cleanupBudget)
extends Record
Finite host policy configuration; backend and codec are borrowed, never closed here.
-
Constructor Summary
ConstructorsConstructorDescriptionRegistration(org.j7m.middleware.distributed.DeduplicatedRpc backend, ManagedPayloadCodec codec, Duration retention) Uses a two-second UNKNOWN-only cleanup budget.Registration(org.j7m.middleware.distributed.DeduplicatedRpc backend, ManagedPayloadCodec codec, Duration retention, Duration cleanupBudget) Validates native duration limits without silently truncating submillisecond durations. -
Method Summary
Modifier and TypeMethodDescriptionorg.j7m.middleware.distributed.DeduplicatedRpcbackend()Returns the value of thebackendrecord component.Returns the value of thecleanupBudgetrecord component.codec()Returns the value of thecodecrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theretentionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Registration
public Registration(org.j7m.middleware.distributed.DeduplicatedRpc backend, ManagedPayloadCodec codec, Duration retention, Duration cleanupBudget) Validates native duration limits without silently truncating submillisecond durations. -
Registration
public Registration(org.j7m.middleware.distributed.DeduplicatedRpc backend, ManagedPayloadCodec codec, Duration retention) Uses a two-second UNKNOWN-only cleanup budget.- Parameters:
backend- scope-authorized backendcodec- bounded data-only codecretention- retained outcome duration
-
-
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). -
backend
-
codec
-
retention
-
cleanupBudget
Returns the value of thecleanupBudgetrecord component.- Returns:
- the value of the
cleanupBudgetrecord component
-