Record Class BulkheadProfile
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.BulkheadProfile
- Record Components:
maximumConcurrent- physical active invocations, 1..1000000maximumQueued- bounded waiting callers, 0..1024maximumWait- bounded queue wait consuming the caller budget, zero..one minute
-
Constructor Summary
ConstructorsConstructorDescriptionBulkheadProfile(int maximumConcurrent, int maximumQueued, Duration maximumWait) Validates finite admission without allocating threads. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaximumConcurrentrecord component.intReturns the value of themaximumQueuedrecord component.Returns the value of themaximumWaitrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BulkheadProfile
Validates finite admission without allocating threads.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
maximumConcurrent
public int maximumConcurrent()Returns the value of themaximumConcurrentrecord component.- Returns:
- the value of the
maximumConcurrentrecord component
-
maximumQueued
public int maximumQueued()Returns the value of themaximumQueuedrecord component.- Returns:
- the value of the
maximumQueuedrecord component
-
maximumWait
Returns the value of themaximumWaitrecord component.- Returns:
- the value of the
maximumWaitrecord component
-