Record Class SendingContext
java.lang.Object
java.lang.Record
com.evolveum.midpoint.notifications.api.transports.SendingContext
- Record Components:
expressionProfile
- profile to be used when evaluating expressions during the operationevent
- conceptually, it doesn't much belong here - TODO review
@Experimental
public record SendingContext(@NotNull ExpressionProfile expressionProfile, @Nullable Event event, @NotNull Task task)
extends Record
Contextual information related to sending of a message.
-
Constructor Summary
ConstructorDescriptionSendingContext
(@NotNull ExpressionProfile expressionProfile, @Nullable Event event, @NotNull Task task) Creates an instance of aSendingContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.@Nullable Event
event()
Returns the value of theevent
record component.@NotNull ExpressionProfile
Returns the value of theexpressionProfile
record component.final int
hashCode()
Returns a hash code value for this object.@NotNull Task
task()
Returns the value of thetask
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SendingContext
public SendingContext(@NotNull @NotNull ExpressionProfile expressionProfile, @Nullable @Nullable Event event, @NotNull @NotNull Task task) Creates an instance of aSendingContext
record class.- Parameters:
expressionProfile
- the value for theexpressionProfile
record componentevent
- the value for theevent
record componenttask
- the value for thetask
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)
. -
expressionProfile
Returns the value of theexpressionProfile
record component.- Returns:
- the value of the
expressionProfile
record component
-
event
Returns the value of theevent
record component.- Returns:
- the value of the
event
record component
-
task
Returns the value of thetask
record component.- Returns:
- the value of the
task
record component
-