Record Class ResendHistoricDataWorker.Config
java.lang.Object
java.lang.Record
io.openems.edge.controller.api.backend.ResendHistoricDataWorker.Config
- Enclosing class:
ResendHistoricDataWorker
public static record ResendHistoricDataWorker.Config(ChannelAddress addressForSuccessfulSend, ChannelAddress addressForSuccessfulResend, PersistencePriority resendPriority, Consumer<? super Long> onLastSuccessfulResendUpdated, Function<? super JsonrpcMessage,Boolean> onSendData)
extends Record
-
Constructor Summary
ConstructorDescriptionConfig
(ChannelAddress addressForSuccessfulSend, ChannelAddress addressForSuccessfulResend, PersistencePriority resendPriority, Consumer<? super Long> onLastSuccessfulResendUpdated, Function<? super JsonrpcMessage, Boolean> onSendData) Creates an instance of aConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddressForSuccessfulResend
record component.Returns the value of theaddressForSuccessfulSend
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theonLastSuccessfulResendUpdated
record component.Function
<? super JsonrpcMessage, Boolean> Returns the value of theonSendData
record component.Returns the value of theresendPriority
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Config
public Config(ChannelAddress addressForSuccessfulSend, ChannelAddress addressForSuccessfulResend, PersistencePriority resendPriority, Consumer<? super Long> onLastSuccessfulResendUpdated, Function<? super JsonrpcMessage, Boolean> onSendData) Creates an instance of aConfig
record class.- Parameters:
addressForSuccessfulSend
- the value for theaddressForSuccessfulSend
record componentaddressForSuccessfulResend
- the value for theaddressForSuccessfulResend
record componentresendPriority
- the value for theresendPriority
record componentonLastSuccessfulResendUpdated
- the value for theonLastSuccessfulResendUpdated
record componentonSendData
- the value for theonSendData
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)
. -
addressForSuccessfulSend
Returns the value of theaddressForSuccessfulSend
record component.- Returns:
- the value of the
addressForSuccessfulSend
record component
-
addressForSuccessfulResend
Returns the value of theaddressForSuccessfulResend
record component.- Returns:
- the value of the
addressForSuccessfulResend
record component
-
resendPriority
Returns the value of theresendPriority
record component.- Returns:
- the value of the
resendPriority
record component
-
onLastSuccessfulResendUpdated
Returns the value of theonLastSuccessfulResendUpdated
record component.- Returns:
- the value of the
onLastSuccessfulResendUpdated
record component
-
onSendData
Returns the value of theonSendData
record component.- Returns:
- the value of the
onSendData
record component
-