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.ActionExecuteDelegateThe field for thedelegaterecord component.private final com.codahale.metrics.MeterThe field for theerrorMeterrecord component.private final com.codahale.metrics.TimerThe field for thetimerrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDelegateWrapper(ActionService.ActionExecuteDelegate delegate, com.codahale.metrics.Meter errorMeter, com.codahale.metrics.Timer timer) Creates an instance of aDelegateWrapperrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondelegate()Returns the value of thedelegaterecord component.final booleanIndicates whether some other object is "equal to" this one.com.codahale.metrics.MeterReturns the value of theerrorMeterrecord component.final inthashCode()Returns a hash code value for this object.com.codahale.metrics.Timertimer()Returns the value of thetimerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
delegate
The field for thedelegaterecord component. -
errorMeter
private final com.codahale.metrics.Meter errorMeterThe field for theerrorMeterrecord component. -
timer
private final com.codahale.metrics.Timer timerThe field for thetimerrecord component.
-
-
Constructor Details
-
DelegateWrapper
private DelegateWrapper(ActionService.ActionExecuteDelegate delegate, com.codahale.metrics.Meter errorMeter, com.codahale.metrics.Timer timer) Creates an instance of aDelegateWrapperrecord class.- Parameters:
delegate- the value for thedelegaterecord componenterrorMeter- the value for theerrorMeterrecord componenttimer- the value for thetimerrecord component
-
-
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). -
delegate
Returns the value of thedelegaterecord component.- Returns:
- the value of the
delegaterecord component
-
errorMeter
public com.codahale.metrics.Meter errorMeter()Returns the value of theerrorMeterrecord component.- Returns:
- the value of the
errorMeterrecord component
-
timer
public com.codahale.metrics.Timer timer()Returns the value of thetimerrecord component.- Returns:
- the value of the
timerrecord component
-