Class DeadlineDetails
java.lang.Object
org.axonframework.deadline.jobrunr.DeadlineDetails
Pojo that contains the information about a
Job, will be serialized and deserialized using
the configured Serializer on the JobRunrDeadlineManager.- Since:
- 4.7.0
- Author:
- Tom de Backer, Gerard Klijs
-
Constructor Summary
ConstructorsConstructorDescriptionDeadlineDetails(String deadlineName, String scopeDescriptor, String scopeDescriptorClass, String payload, String payloadClass, String payloadRevision, String metaData) Creates a newDeadlineDetailsobject, likely based on aDeadlineMessage. -
Method Summary
Modifier and TypeMethodDescriptionasDeadLineMessage(Serializer serializer) Returns theDeadlineDetailsas anGenericDeadlineMessage, with the timestamp set using theGenericEventMessage.clockto set to the current time.Returns theStringwith the name of the deadline.getDeserializedScopeDescriptor(Serializer serializer) Returns the serializedScopeDescriptorusing the suppliedSerializer.Returns theStringcontaining the metadata about the deadline.Returns the serializedStringof the payload.Returns theStringwith the class of the payload.Returns theStringwith the revision of the payload.Returns the serializedStringwhich tells what the scope is of the deadline.Returns theStringwith the class of the scope descriptor.
-
Constructor Details
-
DeadlineDetails
public DeadlineDetails(@Nonnull String deadlineName, @Nonnull String scopeDescriptor, @Nonnull String scopeDescriptorClass, @Nullable String payload, @Nullable String payloadClass, @Nullable String payloadRevision, @Nonnull String metaData) Creates a newDeadlineDetailsobject, likely based on aDeadlineMessage.- Parameters:
deadlineName- TheStringwith the name of the deadline.scopeDescriptor- TheStringwhich tells what the scope is of the deadline.scopeDescriptorClass- TheStringwhich tells what the class of the scope descriptor is.payload- TheStringwith the payload. This can be null.payloadClass- TheStringwhich tells what the class of the scope payload is.payloadRevision- TheStringwhich tells what the revision of the scope payload is.metaData- TheStringcontaining the metadata about the deadline.
-
-
Method Details
-
getDeadlineName
Returns theStringwith the name of the deadline.- Returns:
- The
Stringwith the name of the deadline.
-
getScopeDescriptor
Returns the serializedStringwhich tells what the scope is of the deadline.- Returns:
- The serialized
Stringwhich tells what the scope is of the deadline.
-
getScopeDescriptorClass
Returns theStringwith the class of the scope descriptor.- Returns:
- The
Stringwith the class of the scope descriptor.
-
getPayload
Returns the serializedStringof the payload. This can be null.- Returns:
- The serialized
Stringof the payload. This can be null.
-
getPayloadClass
Returns theStringwith the class of the payload. This can be null.- Returns:
- The
Stringwith the class of the payload. This can be null.
-
getPayloadRevision
Returns theStringwith the revision of the payload. This can be null.- Returns:
- The
Stringwith the revision of the payload. This can be null.
-
getMetaData
Returns theStringcontaining the metadata about the deadline.- Returns:
- The
Stringcontaining the metadata about the deadline.
-
asDeadLineMessage
Returns theDeadlineDetailsas anGenericDeadlineMessage, with the timestamp set using theGenericEventMessage.clockto set to the current time.- Returns:
- the
GenericDeadlineMessagewith all the properties of this pojo, and a timestamp.
-
getDeserializedScopeDescriptor
Returns the serializedScopeDescriptorusing the suppliedSerializer. This will be an instance of thescopeDescriptorClassproperty.- Returns:
- the
ScopeDescriptorthat is serialized using the suppliedSerializer.
-