Package ch.rswk.meta.engine
Record Class ActionService.DelegateWrapper
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.ActionService.DelegateWrapper
- Enclosing class:
ActionService
private static record ActionService.DelegateWrapper(ActionService.ActionExecuteDelegate delegate, com.codahale.metrics.Meter errorMeter, com.codahale.metrics.Timer timer)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ActionService.ActionExecuteDelegate
The field for thedelegate
record component.private final com.codahale.metrics.Meter
The field for theerrorMeter
record component.private final com.codahale.metrics.Timer
The field for thetimer
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DelegateWrapper
(ActionService.ActionExecuteDelegate delegate, com.codahale.metrics.Meter errorMeter, com.codahale.metrics.Timer timer) Creates an instance of aDelegateWrapper
record class. -
Method Summary
Modifier and TypeMethodDescriptiondelegate()
Returns the value of thedelegate
record component.final boolean
Indicates whether some other object is "equal to" this one.com.codahale.metrics.Meter
Returns the value of theerrorMeter
record component.final int
hashCode()
Returns a hash code value for this object.com.codahale.metrics.Timer
timer()
Returns the value of thetimer
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
delegate
The field for thedelegate
record component. -
errorMeter
private final com.codahale.metrics.Meter errorMeterThe field for theerrorMeter
record component. -
timer
private final com.codahale.metrics.Timer timerThe field for thetimer
record component.
-
-
Constructor Details
-
DelegateWrapper
private DelegateWrapper(ActionService.ActionExecuteDelegate delegate, com.codahale.metrics.Meter errorMeter, com.codahale.metrics.Timer timer) Creates an instance of aDelegateWrapper
record class.- Parameters:
delegate
- the value for thedelegate
record componenterrorMeter
- the value for theerrorMeter
record componenttimer
- the value for thetimer
record component
-
-
Method Details
-
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. -
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. -
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)
. -
delegate
Returns the value of thedelegate
record component.- Returns:
- the value of the
delegate
record component
-
errorMeter
public com.codahale.metrics.Meter errorMeter()Returns the value of theerrorMeter
record component.- Returns:
- the value of the
errorMeter
record component
-
timer
public com.codahale.metrics.Timer timer()Returns the value of thetimer
record component.- Returns:
- the value of the
timer
record component
-